pull/3311/head
Divyansh Singh 2 years ago
parent 2dc9c04cb5
commit eeae30ac09

@ -11,12 +11,10 @@ const toggleAppearance = inject('toggle-appearance', () => {
isDark.value = !isDark.value
})
const lightModeSwitchTitle = computed(() => theme.value.lightModeSwitchTitle || 'Switch to light theme')
const darkModeSwitchLabel = computed(() => theme.value.darkModeSwitchTitle || 'Switch to dark theme')
const switchTitle = computed(() => {
return isDark.value ? lightModeSwitchTitle.value : darkModeSwitchLabel.value
return isDark.value
? theme.value.lightModeSwitchTitle || 'Switch to light theme'
: theme.value.darkModeSwitchTitle || 'Switch to dark theme'
})
</script>

Loading…
Cancel
Save