mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
building out refactored contact screen
This commit is contained in:
parent
0ecce1da5f
commit
35e1b55685
@ -85,6 +85,24 @@ const Strings = [
|
|||||||
// contacts page
|
// contacts page
|
||||||
add: 'Add',
|
add: 'Add',
|
||||||
back: 'Back',
|
back: 'Back',
|
||||||
|
|
||||||
|
confirmed: 'Saved',
|
||||||
|
pending: 'Unknown Contact',
|
||||||
|
connecting: 'Request Sent',
|
||||||
|
connected: 'Connected',
|
||||||
|
requested: 'Request Received',
|
||||||
|
unsaved: 'Unsaved Contact',
|
||||||
|
offsync: 'Offsync',
|
||||||
|
|
||||||
|
saveContact: 'Save Contact',
|
||||||
|
requestConnection: 'Request Connection',
|
||||||
|
deleteContact: 'Delete Contact',
|
||||||
|
blockContact: 'Block Contact',
|
||||||
|
reportContact: 'Report Contact',
|
||||||
|
cancelRequest: 'Cancel Request',
|
||||||
|
acceptConnection: 'Accept Connection',
|
||||||
|
ignoreContact: 'Ignore Contact',
|
||||||
|
resyncContact: 'Resync Contact',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
visibleRegistry: 'Visible dans le Registre',
|
visibleRegistry: 'Visible dans le Registre',
|
||||||
|
@ -327,7 +327,21 @@ export function Contact({ contact, drawer, back }) {
|
|||||||
{ !state.name && (
|
{ !state.name && (
|
||||||
<Text style={styles.nameUnset}>{ state.strings.name }</Text>
|
<Text style={styles.nameUnset}>{ state.strings.name }</Text>
|
||||||
)}
|
)}
|
||||||
|
<View style={styles.usernameStatus}>
|
||||||
<Text style={styles.username} numberOfLines={1}>{ state.username }</Text>
|
<Text style={styles.username} numberOfLines={1}>{ state.username }</Text>
|
||||||
|
<View style={styles.status}>
|
||||||
|
{ state.status === 'connected' && (
|
||||||
|
<View style={styles.statusConnected}>
|
||||||
|
<Text style={styles.statusLabel}>Connected</Text>
|
||||||
|
</View>
|
||||||
|
)}
|
||||||
|
{ state.status !== 'connected' && (
|
||||||
|
<View style={styles.statusConnected}>
|
||||||
|
<Text style={styles.statusLabel}>Connected</Text>
|
||||||
|
</View>
|
||||||
|
)}
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
<View style={styles.attributes}>
|
<View style={styles.attributes}>
|
||||||
<View style={styles.entry}>
|
<View style={styles.entry}>
|
||||||
<AntIcons name="enviromento" style={styles.icon} size={20} color={Colors.text} />
|
<AntIcons name="enviromento" style={styles.icon} size={20} color={Colors.text} />
|
||||||
|
@ -83,6 +83,28 @@ export const styles = StyleSheet.create({
|
|||||||
paddingLeft: 16,
|
paddingLeft: 16,
|
||||||
paddingRight: 16,
|
paddingRight: 16,
|
||||||
},
|
},
|
||||||
|
usernameStatus: {
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'row',
|
||||||
|
alignItems: 'center',
|
||||||
|
},
|
||||||
|
status: {
|
||||||
|
display: 'flex',
|
||||||
|
flexGrow: 1,
|
||||||
|
paddingRight: 32,
|
||||||
|
alignItems: 'flex-end',
|
||||||
|
},
|
||||||
|
statusConnected: {
|
||||||
|
paddingLeft: 8,
|
||||||
|
paddingRight: 8,
|
||||||
|
paddingTop: 2,
|
||||||
|
paddingBottom: 2,
|
||||||
|
borderRadius: 8,
|
||||||
|
backgroundColor: 'yellow',
|
||||||
|
},
|
||||||
|
statusLabel: {
|
||||||
|
color: Colors.text,
|
||||||
|
},
|
||||||
attributes: {
|
attributes: {
|
||||||
marginLeft: 16,
|
marginLeft: 16,
|
||||||
marginRight: 16,
|
marginRight: 16,
|
||||||
|
Loading…
Reference in New Issue
Block a user