Show setting header in web
parent
1f037a0b43
commit
d9e68d1604
|
@ -147,7 +147,7 @@ export function SettingsScreen({}: Props) {
|
||||||
const setRequireAltTextEnabled = useSetRequireAltTextEnabled()
|
const setRequireAltTextEnabled = useSetRequireAltTextEnabled()
|
||||||
const onboardingDispatch = useOnboardingDispatch()
|
const onboardingDispatch = useOnboardingDispatch()
|
||||||
const navigation = useNavigation<NavigationProp>()
|
const navigation = useNavigation<NavigationProp>()
|
||||||
const {isMobile} = useWebMediaQueries()
|
const {isMobile, isTabletOrDesktop} = useWebMediaQueries()
|
||||||
const {screen, track} = useAnalytics()
|
const {screen, track} = useAnalytics()
|
||||||
const {openModal} = useModalControls()
|
const {openModal} = useModalControls()
|
||||||
const {isSwitchingAccounts, accounts, currentAccount} = useSession()
|
const {isSwitchingAccounts, accounts, currentAccount} = useSession()
|
||||||
|
@ -273,11 +273,17 @@ export function SettingsScreen({}: Props) {
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={[s.hContentRegion]} testID="settingsScreen">
|
<CenteredView
|
||||||
<ViewHeader title={_(msg`Settings`)} />
|
style={[
|
||||||
|
s.hContentRegion,
|
||||||
|
pal.border,
|
||||||
|
isTabletOrDesktop ? styles.desktopContainer : pal.viewLight,
|
||||||
|
]}
|
||||||
|
testID="settingsScreen">
|
||||||
|
<ViewHeader title={_(msg`Settings`)} showOnDesktop />
|
||||||
<ScrollView
|
<ScrollView
|
||||||
style={[s.hContentRegion]}
|
style={[s.hContentRegion]}
|
||||||
contentContainerStyle={isMobile && pal.viewLight}
|
contentContainerStyle={[isMobile && pal.viewLight, styles.noBorder]}
|
||||||
scrollIndicatorInsets={{right: 1}}>
|
scrollIndicatorInsets={{right: 1}}>
|
||||||
<View style={styles.spacer20} />
|
<View style={styles.spacer20} />
|
||||||
{currentAccount ? (
|
{currentAccount ? (
|
||||||
|
@ -752,7 +758,7 @@ export function SettingsScreen({}: Props) {
|
||||||
</View>
|
</View>
|
||||||
<View style={s.footerSpacer} />
|
<View style={s.footerSpacer} />
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
</View>
|
</CenteredView>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -897,4 +903,14 @@ const styles = StyleSheet.create({
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
paddingLeft: 18,
|
paddingLeft: 18,
|
||||||
},
|
},
|
||||||
|
desktopContainer: {
|
||||||
|
borderLeftWidth: 1,
|
||||||
|
borderRightWidth: 1,
|
||||||
|
},
|
||||||
|
noBorder: {
|
||||||
|
borderBottomWidth: 0,
|
||||||
|
borderTopWidth: 0,
|
||||||
|
borderRightWidth: 0,
|
||||||
|
borderLeftWidth: 0,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue