Skip to content

Commit

Permalink
update name of heroWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbristow committed Nov 21, 2024
1 parent 6f8fb1c commit 2f47861
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/context/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const HeroContext = createContext<HeroContent>({
setHeroContent: () => {},
});

export function HeroWrapper({
export function HeroContextProvider({
children,
}: Readonly<{
children: React.ReactNode;
Expand Down
6 changes: 3 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Footer from './components/Footer/Footer';
import USABanner from './components/UsaBanner/UsaBanner';
import './globals.scss';
import './custom-styles.css';
import { HeroWrapper } from './context';
import { HeroContextProvider } from './context';

export const metadata: Metadata = {
title: 'DIBBS Site',
Expand All @@ -20,11 +20,11 @@ export default function RootLayout({
<body>
<USABanner />
<div>
<HeroWrapper>
<HeroContextProvider>
<Header />
<main id="main-content">{children}</main>
<Footer />
</HeroWrapper>
</HeroContextProvider>
</div>
</body>
</html>
Expand Down

0 comments on commit 2f47861

Please sign in to comment.