mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-06-19 12:15:27 -04:00
2026 Redesign (#2531)
This commit is contained in:
@@ -1,19 +1,11 @@
|
||||
"use client";
|
||||
|
||||
import { ThemeProvider } from "@/components/theme/theme-context";
|
||||
import { ProgressProvider } from "@bprogress/next/app";
|
||||
import { ThemeProvider } from "next-themes";
|
||||
|
||||
const Providers = ({ children }: { children: React.ReactNode }) => {
|
||||
return (
|
||||
<ThemeProvider>
|
||||
<ProgressProvider
|
||||
height="calc(var(--spacing) * 1)"
|
||||
color="var(--primary)"
|
||||
options={{ showSpinner: false }}
|
||||
shallowRouting
|
||||
>
|
||||
{children}
|
||||
</ProgressProvider>
|
||||
<ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
|
||||
{children}
|
||||
</ThemeProvider>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user