- {!(
- layout.sidebar ||
- layout.toolbar ||
- layout.header
- ) && (
-
-
-
-
-
- {parseInt(transform.zoom * 100)}%
-
-
-
+
+
+
setResize(false)}
+ onMouseMove={dragHandler}
+ >
+ {layout.sidebar && (
+
+ )}
+
+
+ {!(
+ layout.sidebar ||
+ layout.toolbar ||
+ layout.header
+ ) && (
+
+
+
+
+
+ {parseInt(transform.zoom * 100)}%
-
-
-
+
+
- )}
-
+
+
+
+
+ )}
-
-
-
-
-
+
+
+
+
+
diff --git a/src/pages/Shortcuts.jsx b/src/pages/Shortcuts.jsx
index 26e2f49..6d59680 100644
--- a/src/pages/Shortcuts.jsx
+++ b/src/pages/Shortcuts.jsx
@@ -76,19 +76,7 @@ export default function Shortcuts() {
};
useEffect(() => {
- const t = localStorage.getItem("theme");
- setTheme(t);
- if (t === "dark") {
- const body = document.body;
- if (body.hasAttribute("theme-mode")) {
- body.setAttribute("theme-mode", "dark");
- }
- } else {
- const body = document.body;
- if (body.hasAttribute("theme-mode")) {
- body.setAttribute("theme-mode", "light");
- }
- }
+ setTheme(localStorage.getItem("theme"));
document.title = "Shortcuts | drawDB";
document.body.setAttribute("class", "theme");
}, [setTheme]);
diff --git a/src/pages/Survey.jsx b/src/pages/Survey.jsx
index c3239e1..65fe80c 100644
--- a/src/pages/Survey.jsx
+++ b/src/pages/Survey.jsx
@@ -239,19 +239,7 @@ export default function Survey() {
useEffect(() => window.scroll(0, 0));
useEffect(() => {
- const t = localStorage.getItem("theme");
- setTheme(t);
- if (t === "dark") {
- const body = document.body;
- if (body.hasAttribute("theme-mode")) {
- body.setAttribute("theme-mode", "dark");
- }
- } else {
- const body = document.body;
- if (body.hasAttribute("theme-mode")) {
- body.setAttribute("theme-mode", "light");
- }
- }
+ setTheme(localStorage.getItem("theme"));
document.title = "Share you feedback | drawDB";
document.body.setAttribute("class", "theme");
}, [setTheme]);