mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
adjust profile screen
This commit is contained in:
parent
376420517f
commit
7a62d0ec82
@ -108,7 +108,7 @@ export function Profile() {
|
||||
|
||||
<Text style={styles.username} numberOfLines={1}>{ state.username }</Text>
|
||||
|
||||
<View style={styles.group}>
|
||||
<View style={styles.attributes}>
|
||||
<View style={styles.entry}>
|
||||
<AntIcons name="enviromento" style={styles.icon} size={20} color={Colors.text} />
|
||||
{ state.location && (
|
||||
@ -135,7 +135,9 @@ export function Profile() {
|
||||
<View style={styles.group}>
|
||||
<TouchableOpacity style={styles.entry} activeOpacity={1}>
|
||||
<MatIcons name="eye-outline" style={styles.icon} size={20} color={Colors.text} />
|
||||
<TouchableOpacity activeOpacity={1} onPress={() => setVisible(!state.searchable)}>
|
||||
<Text style={styles.visibleLabel}>{ state.strings.visibleRegistry }</Text>
|
||||
</TouchableOpacity>
|
||||
<Switch value={state.searchable} style={styles.visibleSwitch} thumbColor={Colors.sliderGrip} ios_backgroundColor={Colors.disabledIndicator}
|
||||
trackColor={styles.track} onValueChange={setVisible} />
|
||||
</TouchableOpacity>
|
||||
|
@ -92,6 +92,14 @@ export const styles = StyleSheet.create({
|
||||
borderRadius: 8,
|
||||
marginTop: 16,
|
||||
display: 'flex',
|
||||
},
|
||||
attributes: {
|
||||
marginLeft: 16,
|
||||
marginRight: 16,
|
||||
backgroundColor: Colors.areaBase,
|
||||
borderRadius: 8,
|
||||
marginTop: 16,
|
||||
display: 'flex',
|
||||
flexShrink: 1,
|
||||
},
|
||||
divider: {
|
||||
|
Loading…
Reference in New Issue
Block a user