diff --git a/src/renderer/features/player/components/sleep-timer-button.tsx b/src/renderer/features/player/components/sleep-timer-button.tsx index e561ffd17..99d1eecda 100644 --- a/src/renderer/features/player/components/sleep-timer-button.tsx +++ b/src/renderer/features/player/components/sleep-timer-button.tsx @@ -13,7 +13,9 @@ import { } from '/@/renderer/store/sleep-timer.store'; import { ActionIcon } from '/@/shared/components/action-icon/action-icon'; import { Button } from '/@/shared/components/button/button'; +import { Divider } from '/@/shared/components/divider/divider'; import { Flex } from '/@/shared/components/flex/flex'; +import { Grid } from '/@/shared/components/grid/grid'; import { Group } from '/@/shared/components/group/group'; import { NumberInput } from '/@/shared/components/number-input/number-input'; import { Popover } from '/@/shared/components/popover/popover'; @@ -30,6 +32,8 @@ const PRESET_OPTIONS = [ { minutes: 45, mode: 'timed' as const }, { minutes: 60, mode: 'timed' as const }, { minutes: 120, mode: 'timed' as const }, + { minutes: 180, mode: 'timed' as const }, + { minutes: 240, mode: 'timed' as const }, ]; function formatRemaining(totalSeconds: number): string { @@ -209,7 +213,7 @@ export const SleepTimerButton = () => { - + {t('player.sleepTimer', { postProcess: 'titleCase' })} @@ -249,21 +253,49 @@ export const SleepTimerButton = () => { )} - {PRESET_OPTIONS.map((option, index) => ( - - ))} + {PRESET_OPTIONS.filter((option) => option.mode === 'endOfSong').map( + (option, index) => ( + + ), + )} + + + + + {PRESET_OPTIONS.filter((option) => option.mode === 'timed').map( + (option, index) => ( + + + + ), + )} + + + {!showCustom ? (