Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/components/QuestionsForm/RecapBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ interface RecapBarProps {
export default function RecapBar(props: RecapBarProps) {
return (
<div style={styles.barContainer} id="recap-bar-container">
<a
style={StyleSheet.compose(styles.bar, {
minWidth: props.sectionQuestions.length * 25 + 10
})}
{...(props.active ? { href: '#' } : {})}
<div
style={{
...styles.bar,
minWidth: props.sectionQuestions.length * 25 + 10,
cursor: props.active ? 'pointer' : 'default'
}}
>
{props.sectionQuestions.map((q, i) => {
const answer = props.sectionAnswers.find(
Expand All @@ -73,7 +74,7 @@ export default function RecapBar(props: RecapBarProps) {
/>
)
})}
</a>
</div>
</div>
)
}
Expand Down