Swap theme and sound options in SettingsPage

Closes #53
This commit is contained in:
Brandon Presley 2022-09-25 23:51:05 +13:00
parent 2dd2ced21d
commit 5e1a6c42cd

View File

@ -181,14 +181,6 @@ export default function SettingsPage() {
/>
</Pressable>
))}
{'alarm sound'.includes(search.toLowerCase()) && (
<Button style={{alignSelf: 'flex-start'}} onPress={changeSound}>
Alarm sound
{sound
? ': ' + sound.split('/')[sound.split('/').length - 1]
: null}
</Button>
)}
{'theme'.includes(search.toLowerCase()) && (
<Picker
style={{color}}
@ -205,6 +197,14 @@ export default function SettingsPage() {
))}
</Picker>
)}
{'alarm sound'.includes(search.toLowerCase()) && (
<Button style={{alignSelf: 'flex-start'}} onPress={changeSound}>
Alarm sound
{sound
? ': ' + sound.split('/')[sound.split('/').length - 1]
: null}
</Button>
)}
</ScrollView>
<ConfirmDialog
title="Battery optimizations"