Skip to content

Commit 5c4c67d

Browse files
committed
fix confusing back navigation in questionnaire
1 parent 7cb21fd commit 5c4c67d

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/ui/screens/question-pages/components/QuestionPageBackButton.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ const QuestionPageBackButton = ({ handleBack }) => {
1616
gap: theme.spacing(1),
1717
padding: '0',
1818
backgroundColor: 'transparent',
19-
color: 'black.light',
19+
color: 'pink.main',
2020
'&:hover': {
2121
backgroundColor: 'transparent',
22-
color: 'black.light',
22+
color: 'black.main',
2323
},
2424
'&:focus': {
2525
backgroundColor: 'transparent',
26-
color: 'black.light',
26+
color: 'pink.main',
2727
}
2828
}}
2929
onClick={handleBack}

src/ui/screens/question-pages/next/QuestionPageNext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const QuestionPageNext = ({
2020

2121
return (
2222
<Layout isApp={true} logo={false}>
23-
<AppScreenWrapper scrollKey={currentQuestion} backTarget={'/onboarding-welcome'} >
23+
<AppScreenWrapper scrollKey={currentQuestion} backTarget={questionsCount[0] > 1 ? null : '/onboarding-welcome'} >
2424
<VBox sx={{ gap: 2 }}>
2525
<QuestionPageHeader t={t} eligibleRPs={eligibleRPs} />
2626
<QuestionPageQuestionsCount

src/ui/screens/question-pages/next/QuestionPageNextContainer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ const QuestionPageNextContainer = () => {
4949
navigate
5050
});
5151

52-
// Some props for the UI
5352
const eligibleRPs = useMemo(() => {
5453
if (!validationReport?.reports || !metadata?.['ff:hasRP']) return [];
5554

0 commit comments

Comments
 (0)