allow user to set sleep time
This commit is contained in:
committed by
Lei Nelissen
parent
34b3cd3ba3
commit
cf29516c00
@@ -55,6 +55,18 @@ const persistConfig: PersistConfig<Omit<AppState, '_persist'>> = {
|
||||
}
|
||||
};
|
||||
},
|
||||
// @ts-expect-error migrations are poorly typed
|
||||
4: (state: AppState) => {
|
||||
return {
|
||||
...state,
|
||||
settings: {
|
||||
...state.settings,
|
||||
enableSleepTimer: false,
|
||||
sleepTime: 60,
|
||||
remainingSleepTime: 0
|
||||
}
|
||||
};
|
||||
},
|
||||
})
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user