prettier
This commit is contained in:
@@ -720,10 +720,8 @@ export class Editor {
|
||||
dispatch({ type: "start-navigate" });
|
||||
}}
|
||||
onThemeClick={() => {
|
||||
if (localStorage.theme === 'dark')
|
||||
localStorage.theme = 'light';
|
||||
else
|
||||
localStorage.theme = 'dark';
|
||||
if (localStorage.theme === "dark") localStorage.theme = "light";
|
||||
else localStorage.theme = "dark";
|
||||
document.documentElement.dataset.theme = localStorage.theme;
|
||||
}}
|
||||
onHomeClick={() => {
|
||||
|
||||
Reference in New Issue
Block a user