Skip to content

Commit 431ba93

Browse files
authored
Move appearance ref definition outside useAppearance() (#129)
1 parent 677fbbc commit 431ba93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/js/composables/useAppearance.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ export function initializeTheme() {
6262
mediaQuery()?.addEventListener('change', handleSystemThemeChange);
6363
}
6464

65-
export function useAppearance() {
66-
const appearance = ref<Appearance>('system');
65+
const appearance = ref<Appearance>('system');
6766

67+
export function useAppearance() {
6868
onMounted(() => {
6969
const savedAppearance = localStorage.getItem('appearance') as Appearance | null;
7070

0 commit comments

Comments
 (0)