mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-24 09:45:35 +08:00
chore(config): fix type definition of selected theme value
This commit is contained in:
parent
c8104f07a3
commit
ce3065e22e
@ -389,7 +389,9 @@ const ConfigForXd = () => {
|
||||
<select
|
||||
class="select select-bordered"
|
||||
value={favDayTheme()}
|
||||
onChange={(e) => setFavDayTheme(e.target.value)}
|
||||
onChange={(e) =>
|
||||
setFavDayTheme(e.target.value as (typeof themes)[number])
|
||||
}
|
||||
>
|
||||
<For each={themes}>
|
||||
{(theme) => <option value={theme}>{theme}</option>}
|
||||
@ -403,7 +405,9 @@ const ConfigForXd = () => {
|
||||
<select
|
||||
class="select select-bordered"
|
||||
value={favNightTheme()}
|
||||
onChange={(e) => setFavNightTheme(e.target.value)}
|
||||
onChange={(e) =>
|
||||
setFavNightTheme(e.target.value as (typeof themes)[number])
|
||||
}
|
||||
>
|
||||
<For each={themes}>
|
||||
{(theme) => <option value={theme}>{theme}</option>}
|
||||
|
Loading…
Reference in New Issue
Block a user