From 5d702f99048dfb6b6c9a61e929bc86208870341d Mon Sep 17 00:00:00 2001 From: Harshith Mohan <26010946+harshithmohan@users.noreply.github.com> Date: Tue, 20 Aug 2024 21:14:50 +0530 Subject: [PATCH] Add new update frequency options (#1000) --- src/core/types/api/settings.ts | 4 ++-- src/pages/settings/tabs/AniDBSettings.tsx | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/types/api/settings.ts b/src/core/types/api/settings.ts index 105befcbb..d40c081fe 100644 --- a/src/core/types/api/settings.ts +++ b/src/core/types/api/settings.ts @@ -46,8 +46,8 @@ export type SettingsAnidbMylistType = { MyList_StorageState: MyListStorageState; }; -// Never = 1, HoursSix = 2, HoursTwelve = 3, Daily = 4, WeekOne = 5, MonthOne = 6 -export type SettingsUpdateFrequencyType = 1 | 2 | 3 | 4 | 5 | 6; +// Never = 1, HoursSix = 2, HoursTwelve = 3, Daily = 4, WeekOne = 5, MonthOne = 6, HoursThree = 7, HoursOne = 8 +export type SettingsUpdateFrequencyType = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; export type SettingsAnidbUpdateType = { Calendar_UpdateFrequency: SettingsUpdateFrequencyType; diff --git a/src/pages/settings/tabs/AniDBSettings.tsx b/src/pages/settings/tabs/AniDBSettings.tsx index 348ec48a8..99011b383 100644 --- a/src/pages/settings/tabs/AniDBSettings.tsx +++ b/src/pages/settings/tabs/AniDBSettings.tsx @@ -13,6 +13,8 @@ import useSettingsContext from '@/hooks/useSettingsContext'; const UpdateFrequencyValues = () => ( <> + + @@ -313,7 +315,7 @@ function AniDBSettings() {