Change edit headers to add when adding
This commit is contained in:
parent
e7f85a9954
commit
467df629b0
|
@ -72,7 +72,9 @@ export default function EditPlan() {
|
|||
|
||||
return (
|
||||
<>
|
||||
<StackHeader title="Edit plan" />
|
||||
<StackHeader
|
||||
title={typeof plan.id === 'number' ? 'Edit plan' : 'Add plan'}
|
||||
/>
|
||||
<View style={{padding: PADDING, flex: 1}}>
|
||||
<ScrollView style={{flex: 1}}>
|
||||
<Text style={styles.title}>Days</Text>
|
||||
|
|
|
@ -131,7 +131,9 @@ export default function EditSet() {
|
|||
|
||||
return (
|
||||
<>
|
||||
<StackHeader title="Edit set" />
|
||||
<StackHeader
|
||||
title={typeof set.id === 'number' ? 'Edit set' : 'Add set'}
|
||||
/>
|
||||
|
||||
<View style={{padding: PADDING, flex: 1}}>
|
||||
<AppInput
|
||||
|
|
|
@ -107,7 +107,7 @@ export default function EditWorkout() {
|
|||
|
||||
return (
|
||||
<>
|
||||
<StackHeader title="Edit workout" />
|
||||
<StackHeader title={params.value.name ? 'Edit workout' : 'Add workout'} />
|
||||
<View style={{padding: PADDING, flex: 1}}>
|
||||
<ScrollView style={{flex: 1}}>
|
||||
<AppInput
|
||||
|
|
Loading…
Reference in New Issue
Block a user