parent
8b479b299f
commit
d05c815a79
|
@ -85,21 +85,25 @@ export default function EditWorkout() {
|
||||||
return (
|
return (
|
||||||
<View style={{padding: PADDING}}>
|
<View style={{padding: PADDING}}>
|
||||||
<ScrollView style={{height: '90%'}}>
|
<ScrollView style={{height: '90%'}}>
|
||||||
{uri ? (
|
{uri && (
|
||||||
<>
|
<>
|
||||||
<Pressable style={{marginBottom: MARGIN}} onPress={changeImage}>
|
<Pressable style={{marginBottom: MARGIN}} onPress={changeImage}>
|
||||||
<Card.Cover source={{uri}} />
|
<Card.Cover source={{uri}} />
|
||||||
</Pressable>
|
</Pressable>
|
||||||
<Button onPress={onRemoveImage}>Remove image</Button>
|
<Button
|
||||||
|
icon="trash"
|
||||||
|
style={{marginBottom: MARGIN}}
|
||||||
|
onPress={onRemoveImage}>
|
||||||
|
Remove image
|
||||||
|
</Button>
|
||||||
</>
|
</>
|
||||||
) : (
|
)}
|
||||||
<Button
|
<Button
|
||||||
style={{marginBottom: MARGIN}}
|
style={{marginBottom: MARGIN}}
|
||||||
onPress={changeImage}
|
onPress={changeImage}
|
||||||
icon="image">
|
icon="image">
|
||||||
Image
|
Change image
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
|
||||||
<MassiveInput
|
<MassiveInput
|
||||||
label={params.value.name || 'Name'}
|
label={params.value.name || 'Name'}
|
||||||
value={name}
|
value={name}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user