mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-10 04:22:18 +00:00
update
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<script lang="ts">
|
||||
import { type Theme, currentTheme } from '$routes/+layout.svelte';
|
||||
|
||||
import Select, { type SelectOption } from './Select.svelte';
|
||||
import { Select as Select2 } from '$lib/components/ui';
|
||||
import { themeStore, setTheme, type Theme } from '$lib/providers/theme';
|
||||
import { get } from 'svelte/store';
|
||||
|
||||
const options = [
|
||||
{
|
||||
@@ -23,5 +23,11 @@
|
||||
];
|
||||
</script>
|
||||
|
||||
<Select {options} bind:value={$currentTheme} placement="top" />
|
||||
<Select2 {options} bind:value={$currentTheme} />
|
||||
<Select {options} bind:value={$themeStore.theme} placement="top" />
|
||||
<Select2
|
||||
{options}
|
||||
bind:value={$themeStore.theme}
|
||||
onValueChange={(e) => {
|
||||
setTheme(e as Theme);
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user