Do not re-define allowedColorModes

This commit is contained in:
Rodolphe Bréard 2023-09-26 12:45:26 +02:00
parent 824d5311ec
commit cf82f550b7

View file

@ -1,5 +1,5 @@
<script setup> <script setup>
import { resetToDefaultAccount } from '../const'; import { allowedColorModes, resetToDefaultAccount } from '../const';
import { watch } from 'vue'; import { watch } from 'vue';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
@ -12,10 +12,6 @@ const stored_locale = useStorage('sake-locale', '');
const { t, locale } = useI18n({ useScope: 'global' }); const { t, locale } = useI18n({ useScope: 'global' });
const colorMode = useStorage('sake-color-mode'); const colorMode = useStorage('sake-color-mode');
const resetToDefault = useStorage('sake-reset-to-default', resetToDefaultAccount); const resetToDefault = useStorage('sake-reset-to-default', resetToDefaultAccount);
const allowedColorModes = [
'light',
'dark',
];
const toMainView = () => { const toMainView = () => {
return router.push('/'); return router.push('/');