Update the DarkModeSwitcher component to change the icon order.

This commit is contained in:
2025-06-03 10:48:59 +03:00
parent aded500cab
commit e754ef0d8f
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ const setupThemeToggle = () => {
const themeToggleDarkIcon = document.getElementById('theme-toggle-dark-icon');
const themeToggleLightIcon = document.getElementById('theme-toggle-light-icon');
if (themeToggleDarkIcon == null || themeToggleLightIcon == null) return;
const show = dark ? themeToggleDarkIcon : themeToggleLightIcon
const hide = dark ? themeToggleLightIcon : themeToggleDarkIcon
const show = dark ? themeToggleLightIcon : themeToggleDarkIcon;
const hide = dark ? themeToggleDarkIcon : themeToggleLightIcon;
show.classList.remove('hidden', 'text-transparent');
hide.classList.add('hidden', 'text-transparent');
if (dark) {