Start cleaning up other pages
This commit is contained in:
@@ -6,12 +6,12 @@ import type React from "react";
|
||||
export default function ThemeSwitcher(): React.JSX.Element {
|
||||
const toggleTheme = (): void => {
|
||||
const currentTheme = document.documentElement.getAttribute("data-theme");
|
||||
if (currentTheme === "dracula-pastel") {
|
||||
if (currentTheme === "nord") {
|
||||
localStorage.theme = "dracula-soft";
|
||||
document.documentElement.setAttribute("data-theme", "dracula-soft");
|
||||
} else {
|
||||
localStorage.theme = "dracula-pastel";
|
||||
document.documentElement.setAttribute("data-theme", "dracula-pastel");
|
||||
localStorage.theme = "nord";
|
||||
document.documentElement.setAttribute("data-theme", "nord");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user