mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
/ route for force graph, /links for links
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { LinkRoute } from "@/components/routes/link/LinkRoute"
|
||||
|
||||
export default function HomePage() {
|
||||
export default function LinksPage() {
|
||||
return <LinkRoute />
|
||||
}
|
||||
7
web/app/(public)/layout.tsx
Normal file
7
web/app/(public)/layout.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
export default function PublicLayout({
|
||||
children
|
||||
}: Readonly<{
|
||||
children: React.ReactNode
|
||||
}>) {
|
||||
return <main className="h-full">{children}</main>
|
||||
}
|
||||
5
web/app/page.tsx
Normal file
5
web/app/page.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { PublicHomeRoute } from "@/components/routes/public/PublicHomeRoute"
|
||||
|
||||
export default function HomePage() {
|
||||
return <PublicHomeRoute />
|
||||
}
|
||||
Reference in New Issue
Block a user