[Refactor] Change state management structures. Async atom to be manage manually.
This commit is contained in:
1 parent
586aaf0091
commit
0616092eff
49 files changed
+295
-190
No files matched your search
+2
-2
@@ -8,11 +8,11 @@ export const SidebarCompactModeButton = () => {
|
||||
const { updateIsMainPageCompactMode, currentIsMainPageCompactMode } = useStore_IsMainPageCompactMode();
|
||||
|
||||
const toggleCompactMode = () => {
|
||||
updateIsMainPageCompactMode(!currentIsMainPageCompactMode);
|
||||
updateIsMainPageCompactMode(!currentIsMainPageCompactMode.data);
|
||||
};
|
||||
|
||||
const class_names = clsx(styles["arrow_left_svg"], {
|
||||
[styles["reverse"]]: currentIsMainPageCompactMode
|
||||
[styles["reverse"]]: currentIsMainPageCompactMode.data
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user