Update index.tsx

zio/stable
Minseo Lee 2024-02-15 09:39:29 +09:00
parent 2823e8aa47
commit c94e5f81a0
1 changed files with 10 additions and 9 deletions

View File

@ -472,20 +472,20 @@ export function SettingsScreen({}: Props) {
label={_(msg`System`)} label={_(msg`System`)}
left left
onSelect={() => setColorMode('system')} onSelect={() => setColorMode('system')}
accessibilityHint={_(msg`Set color theme to system setting`)} accessibilityHint={_(msg`Sets color theme to system setting`)}
/> />
<SelectableBtn <SelectableBtn
selected={colorMode === 'light'} selected={colorMode === 'light'}
label={_(msg`Light`)} label={_(msg`Light`)}
onSelect={() => setColorMode('light')} onSelect={() => setColorMode('light')}
accessibilityHint={_(msg`Set color theme to light`)} accessibilityHint={_(msg`Sets color theme to light`)}
/> />
<SelectableBtn <SelectableBtn
selected={colorMode === 'dark'} selected={colorMode === 'dark'}
label={_(msg`Dark`)} label={_(msg`Dark`)}
right right
onSelect={() => setColorMode('dark')} onSelect={() => setColorMode('dark')}
accessibilityHint={_(msg`Set color theme to dark`)} accessibilityHint={_(msg`Sets color theme to dark`)}
/> />
</View> </View>
</View> </View>
@ -504,14 +504,14 @@ export function SettingsScreen({}: Props) {
label={_(msg`Dim`)} label={_(msg`Dim`)}
left left
onSelect={() => setDarkTheme('dim')} onSelect={() => setDarkTheme('dim')}
accessibilityHint={_(msg`Set dark theme to the dim theme`)} accessibilityHint={_(msg`Sets dark theme to the dim theme`)}
/> />
<SelectableBtn <SelectableBtn
selected={darkTheme === 'dark'} selected={darkTheme === 'dark'}
label={_(msg`Dark`)} label={_(msg`Dark`)}
right right
onSelect={() => setDarkTheme('dark')} onSelect={() => setDarkTheme('dark')}
accessibilityHint={_(msg`Set dark theme to the dark theme`)} accessibilityHint={_(msg`Sets dark theme to the dark theme`)}
/> />
</View> </View>
</View> </View>
@ -572,9 +572,10 @@ export function SettingsScreen({}: Props) {
pal.view, pal.view,
isSwitchingAccounts && styles.dimmed, isSwitchingAccounts && styles.dimmed,
]} ]}
onPress={onPressSavedFeeds}
accessibilityRole="button"
accessibilityLabel={_(msg`My saved feeds`)} accessibilityLabel={_(msg`My saved feeds`)}
accessibilityHint={_(msg`Opens screen with all saved feeds`)} accessibilityHint={_(msg`Opens screen with all saved feeds`)}>
onPress={onPressSavedFeeds}>
<View style={[styles.iconContainer, pal.btn]}> <View style={[styles.iconContainer, pal.btn]}>
<HashtagIcon style={pal.text} size={18} strokeWidth={3} /> <HashtagIcon style={pal.text} size={18} strokeWidth={3} />
</View> </View>
@ -673,7 +674,7 @@ export function SettingsScreen({}: Props) {
onPress={onPressAppPasswords} onPress={onPressAppPasswords}
accessibilityRole="button" accessibilityRole="button"
accessibilityLabel={_(msg`App password settings`)} accessibilityLabel={_(msg`App password settings`)}
accessibilityHint={_(msg`Opens the app password settings page`)}> accessibilityHint={_(msg`Opens the app password settings`)}>
<View style={[styles.iconContainer, pal.btn]}> <View style={[styles.iconContainer, pal.btn]}>
<FontAwesomeIcon <FontAwesomeIcon
icon="lock" icon="lock"
@ -694,7 +695,7 @@ export function SettingsScreen({}: Props) {
onPress={isSwitchingAccounts ? undefined : onPressChangeHandle} onPress={isSwitchingAccounts ? undefined : onPressChangeHandle}
accessibilityRole="button" accessibilityRole="button"
accessibilityLabel={_(msg`Change handle`)} accessibilityLabel={_(msg`Change handle`)}
accessibilityHint={_(msg`Choose a new Bluesky username or create`)}> accessibilityHint={_(msg`Opens modal for choosing or creating a new Bluesky username`)}>
<View style={[styles.iconContainer, pal.btn]}> <View style={[styles.iconContainer, pal.btn]}>
<FontAwesomeIcon <FontAwesomeIcon
icon="at" icon="at"