Add empty message for workouts in EditPlan
This commit is contained in:
parent
5120852ce7
commit
0ceeb2e4d5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user