From f9f58a8d1eba7d75cd948287256b8e4aed18bf6b Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Thu, 2 Jan 2025 00:26:33 +0900 Subject: [PATCH] fix: make nav button label setting reactive --- components/nav/button/Bookmark.vue | 3 +-- components/nav/button/Compose.vue | 3 +-- components/nav/button/Explore.vue | 3 +-- components/nav/button/Favorite.vue | 3 +-- components/nav/button/Federated.vue | 3 +-- components/nav/button/Hashtag.vue | 3 +-- components/nav/button/Home.vue | 3 +-- components/nav/button/List.vue | 3 +-- components/nav/button/Local.vue | 3 +-- components/nav/button/Mention.vue | 3 +-- components/nav/button/MoreMenu.vue | 3 +-- components/nav/button/Notification.vue | 3 +-- components/nav/button/Search.vue | 3 +-- 13 files changed, 13 insertions(+), 26 deletions(-) diff --git a/components/nav/button/Bookmark.vue b/components/nav/button/Bookmark.vue index 1fc08895..80726e42 100644 --- a/components/nav/button/Bookmark.vue +++ b/components/nav/button/Bookmark.vue @@ -4,12 +4,11 @@ defineProps<{ }>() const userSettings = useUserSettings() -const hideLabel = getPreferences(userSettings.value, 'hideBottomNavLabel') diff --git a/components/nav/button/Compose.vue b/components/nav/button/Compose.vue index b4406630..4aa2e727 100644 --- a/components/nav/button/Compose.vue +++ b/components/nav/button/Compose.vue @@ -4,12 +4,11 @@ defineProps<{ }>() const userSettings = useUserSettings() -const hideLabel = getPreferences(userSettings.value, 'hideBottomNavLabel') diff --git a/components/nav/button/Explore.vue b/components/nav/button/Explore.vue index e398ee9b..049f068a 100644 --- a/components/nav/button/Explore.vue +++ b/components/nav/button/Explore.vue @@ -8,7 +8,6 @@ defineProps<{ const lastAccessedExploreRoute = useLocalStorage(STORAGE_KEY_LAST_ACCESSED_EXPLORE_ROUTE, '') const userSettings = useUserSettings() -const hideLabel = getPreferences(userSettings.value, 'hideBottomNavLabel') diff --git a/components/nav/button/Favorite.vue b/components/nav/button/Favorite.vue index aaf6306a..65ae7381 100644 --- a/components/nav/button/Favorite.vue +++ b/components/nav/button/Favorite.vue @@ -4,12 +4,11 @@ defineProps<{ }>() const userSettings = useUserSettings() -const hideLabel = getPreferences(userSettings.value, 'hideBottomNavLabel') diff --git a/components/nav/button/Federated.vue b/components/nav/button/Federated.vue index e3833b1d..932a9b68 100644 --- a/components/nav/button/Federated.vue +++ b/components/nav/button/Federated.vue @@ -4,12 +4,11 @@ defineProps<{ }>() const userSettings = useUserSettings() -const hideLabel = getPreferences(userSettings.value, 'hideBottomNavLabel') diff --git a/components/nav/button/Hashtag.vue b/components/nav/button/Hashtag.vue index 222978c3..28a126cd 100644 --- a/components/nav/button/Hashtag.vue +++ b/components/nav/button/Hashtag.vue @@ -4,12 +4,11 @@ defineProps<{ }>() const userSettings = useUserSettings() -const hideLabel = getPreferences(userSettings.value, 'hideBottomNavLabel') diff --git a/components/nav/button/Home.vue b/components/nav/button/Home.vue index c906fa78..7853e4bb 100644 --- a/components/nav/button/Home.vue +++ b/components/nav/button/Home.vue @@ -4,12 +4,11 @@ defineProps<{ }>() const userSettings = useUserSettings() -const hideLabel = getPreferences(userSettings.value, 'hideBottomNavLabel') diff --git a/components/nav/button/List.vue b/components/nav/button/List.vue index 4a25def5..72af3955 100644 --- a/components/nav/button/List.vue +++ b/components/nav/button/List.vue @@ -4,7 +4,6 @@ defineProps<{ }>() const userSettings = useUserSettings() -const hideLabel = getPreferences(userSettings.value, 'hideBottomNavLabel') diff --git a/components/nav/button/Local.vue b/components/nav/button/Local.vue index b2970a4f..a27f8413 100644 --- a/components/nav/button/Local.vue +++ b/components/nav/button/Local.vue @@ -4,7 +4,6 @@ defineProps<{ }>() const userSettings = useUserSettings() -const hideLabel = getPreferences(userSettings.value, 'hideBottomNavLabel') diff --git a/components/nav/button/Mention.vue b/components/nav/button/Mention.vue index 405099eb..82cba17e 100644 --- a/components/nav/button/Mention.vue +++ b/components/nav/button/Mention.vue @@ -4,7 +4,6 @@ defineProps<{ }>() const userSettings = useUserSettings() -const hideLabel = getPreferences(userSettings.value, 'hideBottomNavLabel') diff --git a/components/nav/button/MoreMenu.vue b/components/nav/button/MoreMenu.vue index 4a815e01..3eba0df5 100644 --- a/components/nav/button/MoreMenu.vue +++ b/components/nav/button/MoreMenu.vue @@ -2,7 +2,6 @@ const model = defineModel() const userSettings = useUserSettings() -const hideLabel = getPreferences(userSettings.value, 'hideBottomNavLabel') diff --git a/components/nav/button/Notification.vue b/components/nav/button/Notification.vue index a5a8a01e..a5206d65 100644 --- a/components/nav/button/Notification.vue +++ b/components/nav/button/Notification.vue @@ -8,7 +8,6 @@ const { notifications } = useNotifications() const lastAccessedNotificationRoute = useLocalStorage(STORAGE_KEY_LAST_ACCESSED_NOTIFICATION_ROUTE, '') const userSettings = useUserSettings() -const hideLabel = getPreferences(userSettings.value, 'hideBottomNavLabel') diff --git a/components/nav/button/Search.vue b/components/nav/button/Search.vue index d05abb88..353fddb0 100644 --- a/components/nav/button/Search.vue +++ b/components/nav/button/Search.vue @@ -4,12 +4,11 @@ defineProps<{ }>() const userSettings = useUserSettings() -const hideLabel = getPreferences(userSettings.value, 'hideBottomNavLabel')