- Wiring up nom and phone registration bits

- Added guided registration
This commit is contained in:
Mike Fitzpatrick
2019-08-14 11:18:21 -04:00
parent cf07ab1c2e
commit c146884636
11 changed files with 190 additions and 118 deletions

View File

@@ -9,12 +9,12 @@ export default function PhoneListItem({ index, label, number, handleDelete, hand
return (
<View style={styles.listItem}>
<View style={styles.listValue}>
<Text style={styles.value}>{phone.get('number')}</Text>
<Text style={styles.label}>{phone.get('label')}</Text>
<Text style={styles.value}>{number}</Text>
<Text style={styles.label}>{label}</Text>
</View>
<View style={styles.listActions}>
{handleEdit !== null && <Button title={`Edit`} onPress={() => this.handleEditStart(index)} />}
<Button title={`X`} onPress={() => this.props.handleDelete(index)} />
{handleEdit !== null && <Button title={`Edit`} onPress={() => handleEditStart(index)} />}
<Button title={`X`} onPress={() => handleDelete(index)} />
</View>
</View>
);