test
This commit is contained in:
parent
ae20cf1437
commit
7b2d768d26
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue