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) => (
<Text <React.Fragment key={workout}>
key={workout} <Text
style={{fontWeight: workout === name ? 'bold' : 'normal'}}> style={{
{workout} fontWeight: workout === name ? 'bold' : 'normal',
textDecorationLine: workout === name ? 'underline' : 'none',
}}>
{workout}
</Text>
{index === workouts.length - 1 ? '.' : ', '} {index === workouts.length - 1 ? '.' : ', '}
</Text> </React.Fragment>
))} ))}
</Text> </Text>
</ScrollView> </ScrollView>