Change edit headers to add when adding

This commit is contained in:
Brandon Presley 2023-01-08 18:05:59 +13:00
parent e7f85a9954
commit 467df629b0
3 changed files with 7 additions and 3 deletions

View File

@ -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>

View File

@ -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

View File

@ -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