Underline current workout in SetForm

This commit is contained in:
Brandon Presley 2022-08-25 14:16:30 +12:00
parent 804c89393f
commit 8ae8de9612

View File

@ -90,12 +90,16 @@ export default function SetForm({
)} )}
<Text> <Text>
{workouts?.map((workout, index) => ( {workouts?.map((workout, index) => (
<React.Fragment key={workout}>
<Text <Text
key={workout} style={{
style={{fontWeight: workout === name ? 'bold' : 'normal'}}> fontWeight: workout === name ? 'bold' : 'normal',
textDecorationLine: workout === name ? 'underline' : 'none',
}}>
{workout} {workout}
{index === workouts.length - 1 ? '.' : ', '}
</Text> </Text>
{index === workouts.length - 1 ? '.' : ', '}
</React.Fragment>
))} ))}
</Text> </Text>
</ScrollView> </ScrollView>