Skip to content

Commit

Permalink
refactor: rename variables in SideBar
Browse files Browse the repository at this point in the history
  • Loading branch information
laporchen committed Aug 5, 2023
1 parent 64a05c3 commit bacbe67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const isDark = useDark({
});
const toggleDark = useToggle(isDark);
const isMiniStorage = useStorage(LOCAL_STORAGE_KEY.MINI_SIDEBAR, false);
const isMiniSidebarToggled = useStorage(LOCAL_STORAGE_KEY.MINI_SIDEBAR, false);
const isMini = computed(() => isMiniStorage.value && isDesktop.value);
const isMini = computed(() => isMiniSidebarToggled.value && isDesktop.value);
const theme = useTheme();
watchEffect(() => {
Expand Down Expand Up @@ -91,7 +91,7 @@ const session = useSession();
</li>
<li v-if="isDesktop">
<label class="swap swap-rotate">
<input v-model="isMiniStorage" type="checkbox" />
<input v-model="isMiniSidebarToggled" type="checkbox" />
<i-uil-angle-double-right class="swap-on h-6 w-6" />
<i-uil-angle-double-left class="swap-off h-6 w-6" />
</label>
Expand Down

0 comments on commit bacbe67

Please sign in to comment.