mirror of
https://github.com/linsa-io/linsa.git
synced 2026-03-21 08:39:10 +01: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 { CommandPalette } from "@/components/custom/command-palette/command-palette"
|
||||
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 }) {
|
||||
const { me } = useAccountOrGuest()
|
||||
const pathname = usePathname()
|
||||
|
||||
if (me._type === "Anonymous" && pathname === "/") {
|
||||
return <PublicHomeRoute />
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="flex h-full min-h-full w-full flex-row items-stretch overflow-hidden">
|
||||
|
||||
Reference in New Issue
Block a user