/ route for force graph, /links for links

This commit is contained in:
marshennikovaolga
2024-09-06 13:34:03 +03:00
parent 3014116b56
commit fbc9fd156c
8 changed files with 53 additions and 37 deletions

View File

@@ -1,6 +1,5 @@
import { SignedInClient } from "@/components/custom/clerk/signed-in-client"
import { Sidebar } from "@/components/custom/sidebar/sidebar"
import { PublicHomeRoute } from "@/components/routes/public/PublicHomeRoute"
import { JazzClerkAuth, JazzProvider } from "@/lib/providers/jazz-provider"
import { currentUser } from "@clerk/nextjs/server"
import { CommandPalette } from "@/components/custom/command-palette/command-palette"
@@ -9,7 +8,7 @@ export default async function PageLayout({ children }: { children: React.ReactNo
const user = await currentUser()
if (!user) {
return <PublicHomeRoute />
return children
}
return (

View File

@@ -1,5 +1,5 @@
import { LinkRoute } from "@/components/routes/link/LinkRoute"
export default function HomePage() {
export default function LinksPage() {
return <LinkRoute />
}