Add empty message for workouts in EditPlan

This commit is contained in:
Brandon Presley 2022-07-07 17:18:40 +12:00
parent 5120852ce7
commit 0ceeb2e4d5
1 changed files with 6 additions and 0 deletions

View File

@ -101,6 +101,12 @@ export default function EditPlan({
</View>
<View>
<Text style={styles.title}>Workouts</Text>
{names.length === 0 && (
<Text style={{maxWidth: '80%'}}>
No sets found. Try going to the home page and adding some
workouts first.
</Text>
)}
{names.map(name => (
<View key={name} style={[styles.row, {alignItems: 'center'}]}>
<Switch