forked from Significant-Gravitas/AutoGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(builder): Apply standard theming for shadCn and centralize provi…
…ders (Significant-Gravitas#7622)
- Loading branch information
1 parent
b62c24d
commit edf84fb
Showing
4 changed files
with
168 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
'use client' | ||
|
||
import * as React from 'react' | ||
import { ThemeProvider as NextThemesProvider } from 'next-themes' | ||
import { ThemeProviderProps } from 'next-themes/dist/types' | ||
import { TooltipProvider } from '@/components/ui/tooltip' | ||
|
||
export function Providers({ children, ...props }: ThemeProviderProps) { | ||
return ( | ||
<NextThemesProvider {...props}> | ||
<TooltipProvider>{children}</TooltipProvider> | ||
</NextThemesProvider> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters