diff --git a/SettingsPage.tsx b/SettingsPage.tsx index 5987c80..0f267d6 100644 --- a/SettingsPage.tsx +++ b/SettingsPage.tsx @@ -69,6 +69,12 @@ export default function SettingsPage() { }, []), ) + const soundString = useMemo(() => { + if (!sound) return null + const split = sound.split('/') + return split.pop() + }, [sound]) + const changeAlarmEnabled = useCallback( (enabled: boolean) => { if (enabled) @@ -99,7 +105,7 @@ export default function SettingsPage() { if (!fileCopyUri) return settingsRepo.update({}, {sound: fileCopyUri}) setSound(fileCopyUri) - toast('This song will now play after rest timers complete.') + toast('Sound will play after rest timers.') }, []) const changeNotify = useCallback((enabled: boolean) => { @@ -168,12 +174,6 @@ export default function SettingsPage() { setDate(value) }, []) - const soundString = useMemo(() => { - if (!sound) return null - const split = sound.split('/') - return split.pop() - }, [sound]) - const changeDarkColor = useCallback( (value: string) => { setDarkColor(value)