return seed

This commit is contained in:
Qing
2022-09-20 22:43:20 +08:00
parent 32854d40da
commit 3e4021ec0d
6 changed files with 62 additions and 26 deletions

View File

@@ -270,6 +270,18 @@ export const settingState = atom<Settings>({
effects: [localStorageEffect(ROOT_STATE_KEY)],
})
export const seedState = selector({
key: 'seed',
get: ({ get }) => {
const settings = get(settingState)
return settings.sdSeed
},
set: ({ get, set }, newValue: any) => {
const settings = get(settingState)
set(settingState, { ...settings, sdSeed: newValue })
},
})
export const hdSettingsState = selector({
key: 'hdSettings',
get: ({ get }) => {