Skip to content

Commit

Permalink
Sat Dec 7 10:43:06 CET 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Dec 7, 2024
1 parent 52d5c13 commit c8d5627
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 0 additions & 4 deletions packages/website/src/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ export const DEFAULT_THEME: DocsThemeConfig = {
)
},
i18n: [],
nextThemes: {
defaultTheme: 'system',
storageKey: 'theme'
},
notFound: {
content: 'Submit an issue about broken link →',
labels: 'bug'
Expand Down
5 changes: 3 additions & 2 deletions packages/website/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ function InnerLayout({ children }: { children: ReactNode }): ReactElement {
<ThemeProvider
attribute="class"
disableTransitionOnChange
{...themeConfig.nextThemes}
defaultTheme="system"
storageKey="theme"
>
<div dir={dir}>
<Head title={title} description={description} />
Expand All @@ -51,7 +52,7 @@ function InnerLayout({ children }: { children: ReactNode }): ReactElement {
</ActiveAnchorProvider>
<Footer menu={config.hideSidebar} />
</div>
</ThemeProvider>
</ThemeProvider >
)
}

Expand Down

0 comments on commit c8d5627

Please sign in to comment.