mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-09 09:55:02 -05:00
Compare commits
1 Commits
3577d8483f
...
bc26709389
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc26709389 |
@ -34,18 +34,6 @@ import * as React from "react";
|
||||
import { ThemeProvider as NextThemesProvider, useTheme } from "next-themes";
|
||||
import { type ThemeProviderProps } from "next-themes/dist/types";
|
||||
|
||||
declare global {
|
||||
interface Document {
|
||||
startViewTransition(updateCallback: () => void):
|
||||
| {
|
||||
finished: Promise<void>;
|
||||
ready: Promise<void>;
|
||||
updateCallbackDone: Promise<void>;
|
||||
}
|
||||
| undefined;
|
||||
}
|
||||
}
|
||||
|
||||
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
|
||||
const [mounted, setMounted] = React.useState(false);
|
||||
|
||||
@ -60,7 +48,7 @@ export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
|
||||
|
||||
interface UseThemeTransitionResult {
|
||||
theme: string | undefined;
|
||||
changeTheme: (changeTheme: string) => void;
|
||||
changeTheme: (changeTheme: string) => () => void;
|
||||
mounted: boolean;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user