allow user to set sleep time

This commit is contained in:
Benard Mathu
2023-07-20 03:34:04 +03:00
committed by Lei Nelissen
parent 34b3cd3ba3
commit cf29516c00
9 changed files with 81 additions and 2 deletions

View File

@@ -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
}
};
},
})
};