Skip to content

Commit

Permalink
chore(docs): remove useTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ksem committed May 1, 2023
1 parent b896d2a commit 94edc1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
6 changes: 2 additions & 4 deletions packages/docs/components/layout/header/ThemeSwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@
import { computed } from 'vue'
import { useColors } from 'vuestic-ui'
const { currentPresetName } = useColors()
const { setTheme } = useTheme()
const { currentPresetName, applyPreset } = useColors()
const isDark = computed({
get: () => currentPresetName.value === 'dark',
set: (value) => setTheme(value ? 'dark' : 'light'),
set: (value) => applyPreset(value ? 'dark' : 'light'),
})
</script>

Expand Down
12 changes: 0 additions & 12 deletions packages/docs/composables/useTheme.ts

This file was deleted.

0 comments on commit 94edc1e

Please sign in to comment.