Skip to content

Commit d20da10

Browse files
committed
update/audit packages, add license
1 parent e101b54 commit d20da10

3 files changed

Lines changed: 1829 additions & 990 deletions

File tree

app/layout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Toaster } from "@/components/ui/sonner"
22
import { Instrument_Sans } from 'next/font/google';
33
import { ThemeProvider } from "next-themes"
4+
import { usePathname } from 'next/navigation';
45
import "./globals.css"
56

67
import { Footer } from '@/components/footer';
@@ -12,6 +13,8 @@ const instrumentSans = Instrument_Sans({
1213
});
1314

1415
export default function RootLayout({children}: Readonly<{children: React.ReactNode}>) {
16+
const path = usePathname().split('/')[1] || ''; // Default to home if no path is present
17+
1518
return (
1619
<html lang="en" suppressHydrationWarning className={instrumentSans.className}>
1720
<body>

0 commit comments

Comments
 (0)