Skip to content

Commit

Permalink
vinvoor: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Oct 20, 2024
1 parent a44e466 commit 4fc59fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vinvoor/src/providers/ThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export const ThemeContext = createContext<ThemeContextProps>({

export const ThemeProvider: FC<ThemeProviderProps> = ({ children }) => {
const [themeMode, setThemeMode] = useState<ThemeMode>(
window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light",
window.matchMedia("(prefers-color-scheme: dark)").matches
? "dark"
: "light",
);

const setTheme = (theme: ThemeMode) => {
Expand Down

0 comments on commit 4fc59fa

Please sign in to comment.