mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-09 15:25:00 -05:00
Compare commits
1 Commits
5b599435a6
...
04ca90b55f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
04ca90b55f |
@ -34,18 +34,6 @@ import * as React from "react";
|
|||||||
import { ThemeProvider as NextThemesProvider, useTheme } from "next-themes";
|
import { ThemeProvider as NextThemesProvider, useTheme } from "next-themes";
|
||||||
import { type ThemeProviderProps } from "next-themes/dist/types";
|
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) {
|
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
|
||||||
const [mounted, setMounted] = React.useState(false);
|
const [mounted, setMounted] = React.useState(false);
|
||||||
|
|
||||||
@ -60,7 +48,7 @@ export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
|
|||||||
|
|
||||||
interface UseThemeTransitionResult {
|
interface UseThemeTransitionResult {
|
||||||
theme: string | undefined;
|
theme: string | undefined;
|
||||||
changeTheme: (changeTheme: string) => void;
|
changeTheme: (changeTheme: string) => () => void;
|
||||||
mounted: boolean;
|
mounted: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user