This commit is contained in:
Vishnu 2025-06-13 17:02:22 +05:30
parent ae20cf1437
commit 7b2d768d26
1 changed files with 1 additions and 1 deletions

View File

@ -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';