Skip to content

Commit

Permalink
fix(doc): migrated ScriptProvider component from the root level to ea…
Browse files Browse the repository at this point in the history
…ch decendant folder (#3269)

Co-authored-by: HaRuki Kuriwada <haruki.kuriwada@hennge.com>
  • Loading branch information
kuri-sun and HaRuki Kuriwada authored Jun 29, 2024
1 parent 78d4216 commit 0711b66
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions apps/docs/app/blog/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import {Image} from "@nextui-org/react";

import {ScriptProviders} from "@/components/scripts/script-providers";

interface DocsLayoutProps {
children: React.ReactNode;
}
Expand All @@ -22,6 +24,8 @@ export default function DocsLayout({children}: DocsLayoutProps) {
>
<Image removeWrapper alt="docs right background" src="/gradients/docs-right.png" />
</div>

<ScriptProviders />
</>
);
}
3 changes: 3 additions & 0 deletions apps/docs/app/docs/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {Image} from "@nextui-org/react";

import manifest from "@/config/routes.json";
import {DocsSidebar} from "@/components/docs/sidebar";
import {ScriptProviders} from "@/components/scripts/script-providers";

interface DocsLayoutProps {
children: React.ReactNode;
Expand Down Expand Up @@ -30,6 +31,8 @@ export default function DocsLayout({children}: DocsLayoutProps) {
>
<Image removeWrapper alt="docs right background" src="/gradients/docs-right.png" />
</div>

<ScriptProviders />
</>
);
}
3 changes: 3 additions & 0 deletions apps/docs/app/figma/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {Image} from "@nextui-org/react";

import {Blockquote} from "@/components/docs/components/blockquote";
import {FigmaButton} from "@/components/figma-button";
import {ScriptProviders} from "@/components/scripts/script-providers";

export default function FigmaPage() {
return (
Expand Down Expand Up @@ -43,6 +44,8 @@ export default function FigmaPage() {
>
<Image removeWrapper alt="docs right background" src="/gradients/docs-right.png" />
</div>

<ScriptProviders />
</>
);
}
2 changes: 0 additions & 2 deletions apps/docs/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {fontSans} from "@/config/fonts";
import {Navbar} from "@/components/navbar";
import {Footer} from "@/components/footer";
import {ProBanner} from "@/components/pro-banner";
import {ScriptProviders} from "@/components/scripts/script-providers";

export const metadata: Metadata = {
title: {
Expand Down Expand Up @@ -77,7 +76,6 @@ export default function RootLayout({children}: {children: React.ReactNode}) {
</div>
<Cmdk />
</Providers>
<ScriptProviders />
</body>
</html>
);
Expand Down

0 comments on commit 0711b66

Please sign in to comment.