Skip to content

Commit

Permalink
revert: add layout and header back
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 24, 2024
1 parent a19fbe3 commit 52576e3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { Providers } from "@/components/Providers"
import { PostHogPageViews } from "@/components/Providers/PostHogPageViews"
import { dystopian, inter } from "fonts"
import type { Metadata } from "next"
import { type ReactNode } from "react"
import { type ReactNode, Suspense } from "react"
import "./globals.css"
import { TooltipProvider } from "@/components/ui/Tooltip"
import { cn } from "@/lib/utils"
import { ThemeProvider } from "next-themes"
import NextTopLoader from "nextjs-toploader"

interface RootLayoutProps {
children: ReactNode
Expand All @@ -20,17 +21,15 @@ export default function RootLayout({ children }: RootLayoutProps) {
return (
<html lang="en" suppressHydrationWarning>
<head />

<body className={cn(dystopian.variable, inter.variable)}>
<ThemeProvider
attribute="data-theme"
storageKey="chakra-ui-color-mode"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
<TooltipProvider>{children}</TooltipProvider>
</ThemeProvider>
<NextTopLoader showSpinner={false} color="#eff6ff" height={3} />
<Providers>
{children}

<Suspense>
<PostHogPageViews />
</Suspense>
</Providers>
</body>
</html>
)
Expand Down
2 changes: 2 additions & 0 deletions src/v2/components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
"use client"

import { Account } from "../Account"
import { NavMenu } from "./NavMenu"

const Header = () => (
<header className="relative flex h-16 w-full items-center justify-between p-2">
<NavMenu />
<Account />
</header>
)

Expand Down

0 comments on commit 52576e3

Please sign in to comment.