Underline current workout in SetForm
This commit is contained in:
parent
804c89393f
commit
8ae8de9612
14
SetForm.tsx
14
SetForm.tsx
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user