mirror of
https://github.com/linsa-io/linsa.git
synced 2026-04-20 23:41:29 +02:00
fix: remove old logic for defining the return layout (#148)
This commit is contained in:
@@ -3,16 +3,9 @@
|
|||||||
import { Sidebar } from "@/components/custom/sidebar/sidebar"
|
import { Sidebar } from "@/components/custom/sidebar/sidebar"
|
||||||
import { CommandPalette } from "@/components/custom/command-palette/command-palette"
|
import { CommandPalette } from "@/components/custom/command-palette/command-palette"
|
||||||
import { useAccountOrGuest } from "@/lib/providers/jazz-provider"
|
import { useAccountOrGuest } from "@/lib/providers/jazz-provider"
|
||||||
import { usePathname } from "next/navigation"
|
|
||||||
import PublicHomeRoute from "@/components/routes/public/PublicHomeRoute"
|
|
||||||
|
|
||||||
export default function PageLayout({ children }: { children: React.ReactNode }) {
|
export default function PageLayout({ children }: { children: React.ReactNode }) {
|
||||||
const { me } = useAccountOrGuest()
|
const { me } = useAccountOrGuest()
|
||||||
const pathname = usePathname()
|
|
||||||
|
|
||||||
if (me._type === "Anonymous" && pathname === "/") {
|
|
||||||
return <PublicHomeRoute />
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex h-full min-h-full w-full flex-row items-stretch overflow-hidden">
|
<div className="flex h-full min-h-full w-full flex-row items-stretch overflow-hidden">
|
||||||
|
|||||||
Reference in New Issue
Block a user