test
This commit is contained in:
@@ -9,7 +9,7 @@ function setTheme() {
|
||||
localStorage.setItem('theme', defaultTheme);
|
||||
}
|
||||
|
||||
// Function to toggle the theme
|
||||
// Function to toggle the theme
|
||||
export function toggleTheme() {
|
||||
const currentTheme: string | null = document.documentElement.getAttribute('data-theme');
|
||||
const newTheme: string = currentTheme === 'dark' ? 'light' : 'dark';
|
||||
|
||||
Reference in New Issue
Block a user