From 13c487947043a63a9bb3c0e925344c91f6bdd889 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Wed, 28 Sep 2022 14:20:01 +1300 Subject: [PATCH] Revert workouts to be text instead of an input These workouts being an input is confusing because they are not editable. Closes #65 --- SetForm.tsx | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/SetForm.tsx b/SetForm.tsx index 988b068..b828449 100644 --- a/SetForm.tsx +++ b/SetForm.tsx @@ -1,6 +1,6 @@ import React, {useContext, useEffect, useRef, useState} from 'react'; -import {ScrollView} from 'react-native'; -import {Button} from 'react-native-paper'; +import {ScrollView, View} from 'react-native'; +import {Button, Text} from 'react-native-paper'; import MassiveInput from './MassiveInput'; import {SnackbarContext} from './MassiveSnack'; import Set from './set'; @@ -107,11 +107,21 @@ export default function SetForm({ /> )} {workouts.length > 0 && !!settings.workouts && ( - + + {workouts.map((workout, index) => ( + + + {workout} + + {index === workouts.length - 1 ? '' : ', '} + + ))} + )}