feat: Implement dark mode support by adjusting background and text colors across various pages and components.
This commit is contained in:
@@ -11,7 +11,7 @@ interface ThemeContextType {
|
||||
}
|
||||
|
||||
const ThemeContext = createContext<ThemeContextType>({
|
||||
theme: 'dark',
|
||||
theme: 'light',
|
||||
toggleTheme: () => { },
|
||||
setTheme: () => { },
|
||||
});
|
||||
@@ -19,7 +19,7 @@ const ThemeContext = createContext<ThemeContextType>({
|
||||
export const useTheme = () => useContext(ThemeContext);
|
||||
|
||||
export const ThemeProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {
|
||||
const [theme, setThemeState] = useState<Theme>('dark');
|
||||
const [theme, setThemeState] = useState<Theme>('light');
|
||||
const [mounted, setMounted] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user