Move PreferencesHomeFeed
to a screen instead of a modal (#1335)
* move `PreferencesHomeFeed` to a screen instead of a modal * add web route for home feed preferences * upgrade `@miblanchard/react-native-slider` to fix lint * fix web route naming * fix desktop web styling * add `react-native-slider` mock
This commit is contained in:
parent
a29f10aefe
commit
9446c67880
12 changed files with 49 additions and 38 deletions
|
@ -170,10 +170,8 @@ export const SettingsScreen = withAuthRequired(
|
|||
}, [])
|
||||
|
||||
const openPreferencesModal = React.useCallback(() => {
|
||||
store.shell.openModal({
|
||||
name: 'preferences-home-feed',
|
||||
})
|
||||
}, [store])
|
||||
navigation.navigate('PreferencesHomeFeed')
|
||||
}, [navigation])
|
||||
|
||||
const onPressAppPasswords = React.useCallback(() => {
|
||||
navigation.navigate('AppPasswords')
|
||||
|
@ -386,7 +384,7 @@ export const SettingsScreen = withAuthRequired(
|
|||
Advanced
|
||||
</Text>
|
||||
<TouchableOpacity
|
||||
testID="preferencesHomeFeedModalButton"
|
||||
testID="preferencesHomeFeedButton"
|
||||
style={[styles.linkCard, pal.view, isSwitching && styles.dimmed]}
|
||||
onPress={openPreferencesModal}
|
||||
accessibilityRole="button"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue