Add account information to the top of settings (#583)

zio/stable
Paul Frazee 2023-05-05 00:41:31 -05:00 committed by GitHub
parent 646eddad5a
commit ce89b2fae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

View File

@ -152,6 +152,19 @@ export const SettingsScreen = withAuthRequired(
style={[s.hContentRegion]}
contentContainerStyle={!isDesktopWeb && pal.viewLight}
scrollIndicatorInsets={{right: 1}}>
<View style={styles.spacer20} />
<Text type="xl-bold" style={[pal.text, styles.heading]}>
Account
</Text>
<View style={[styles.infoLine]}>
<Text type="lg-medium" style={pal.text}>
Email:{' '}
<Text type="lg" style={pal.text}>
{store.session.currentSession.email}
</Text>
</Text>
</View>
<View style={styles.spacer20} />
<View style={[s.flexRow, styles.heading]}>
<Text type="xl-bold" style={pal.text}>
Signed in as
@ -451,6 +464,10 @@ const styles = StyleSheet.create({
paddingHorizontal: 18,
paddingBottom: 6,
},
infoLine: {
paddingHorizontal: 18,
paddingBottom: 6,
},
profile: {
flexDirection: 'row',
marginVertical: 6,