Skip to content

Commit

Permalink
refactor: move header out, fix storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 11, 2024
1 parent 80a9d2f commit 74e865b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const config: StorybookConfig = {
name: "@storybook/nextjs",
options: {},
},
staticDirs: ["../public"],
staticDirs: ["../public", "../static"],
refs: {
"@chakra-ui/react": {
disable: true,
Expand Down
8 changes: 2 additions & 6 deletions src/v2/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Header } from "@/components/Header"
import { cn } from "@/lib/utils"
import { Slot } from "@radix-ui/react-slot"
import clsx from "clsx"
Expand Down Expand Up @@ -35,14 +34,11 @@ const PageContainer = forwardRef<HTMLDivElement, PageContainerProps>(
)

/* -------------------------------------------------------------------------------------------------
* Header
* Hero
* -----------------------------------------------------------------------------------------------*/

const Hero = ({ children }: PropsWithChildren) => (
<div className="relative">
<Header />
{children}
</div>
<div className="relative">{children}</div>
)

/* -------------------------------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion src/v2/components/Layout/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Header } from "@/components/Header"
import { Banner, Footer, Headline, Hero, Main, Root } from "./Layout"

export const Layout = { Root, Headline, Banner, Hero, Footer, Main }
export const Layout = { Root, Headline, Banner, Hero, Footer, Main, Header }

0 comments on commit 74e865b

Please sign in to comment.