improvements

This commit is contained in:
daniel31x13
2023-11-23 09:03:47 -05:00
parent f25b83bc09
commit c5d9f2c127
6 changed files with 32 additions and 10 deletions
+4 -2
View File
@@ -100,7 +100,7 @@ export default function LinkLayout({ children }: Props) {
}`
);
} else {
router.push(`/collections/${linkCollection?.id}`);
router.push(`/dashboard`);
}
}}
className="inline-flex gap-1 hover:opacity-60 items-center select-none cursor-pointer p-2 lg:p-0 lg:px-1 lg:my-2 text-gray-500 dark:text-gray-300 rounded-md duration-100"
@@ -110,7 +110,9 @@ export default function LinkLayout({ children }: Props) {
<span className="hidden sm:inline-block">
to{" "}
<span className="capitalize">
{linkCollection?.name || link?.collection?.name}
{router.pathname.startsWith("/public")
? linkCollection?.name || link?.collection?.name
: "Dashboard"}
</span>
</span>
</div>