Hooked up Work Item screen to API

This commit is contained in:
John Lyon-Smith
2018-04-05 15:28:57 -07:00
parent e6bd1f8fed
commit aec39ae17d
7 changed files with 195 additions and 103 deletions

View File

@@ -35,14 +35,14 @@ export class MessageModal extends Component {
return (
<Modal isVisible={open}>
<View style={{ alignSelf: 'center', padding: 5, backgroundColor: '#FFFFFF', flexDirection: 'row' }}>
<Icon name={icon} size={130} margin={3} />
<View style={{ marginLeft: 20, marginRight: 20, flexGrow: 1, flexDirection: 'column' }}>
<Text style={{ marginTop: 5, fontSize: 18, alignSelf: 'center' }}>{message}</Text>
<Text style={{ marginTop: 20, alignSelf: 'center' }}>{detail}</Text>
<View style={{ flexDirection: 'row', width: '100%', padding: 5, backgroundColor: '#FFFFFF' }}>
<Icon name={icon} size={100} margin={3} />
<View style={{ flexGrow: 1, flexBasis: 0, flexDirection: 'column', flexWrap: 'wrap', marginLeft: 20, marginRight: 20}}>
<Text style={{ marginTop: 5, fontSize: 18 }}>{message}</Text>
<Text style={{ marginTop: 20 }}>{detail}</Text>
<TouchableOpacity onPress={this.handleButtonPress}
style={{
alignSelf: 'center',
alignSelf: 'flex-end',
backgroundColor: 'blue',
marginTop: 20,
marginBottom: 10,