Skip to content

Commit

Permalink
fix: 🐛 Corrige le bouton suivant des questions du TND
Browse files Browse the repository at this point in the history
  • Loading branch information
benguedj committed Jun 16, 2023
1 parent 028769a commit 61376db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions front/src/components/survey/surveyQuestionsList.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ const SurveyQuestionsList: React.FC<SurveyQuestionsListProps> = ({
trackingEvent,
saveCurrentSurvey,
}) => {
const [nextButtonState, setNextButtonState] = React.useState(false);
const [nextButtonState] = React.useState(false);

const onSwiperIndexChanged = useCallback(
(item: { index: number; prevIndex: number }) => {
if (saveCurrentSurvey) saveCurrentSurvey(item.index);
setNextButtonState(!nextButtonState);
},
[nextButtonState, saveCurrentSurvey]
[saveCurrentSurvey]
);

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const TndOnboarding: React.FC<Props> = ({ onBoardingIsDone }) => {
<HTML
WebView={WebView}
source={{ html: intro.texte1 }}
ignoredStyles={["color", "textAlign"]}
contentWidth={SCREEN_WIDTH}
/>
<View style={styles.validateButton}>
Expand All @@ -120,6 +121,7 @@ const TndOnboarding: React.FC<Props> = ({ onBoardingIsDone }) => {
<HTML
WebView={WebView}
source={{ html: intro.texte2 }}
ignoredStyles={["color", "textAlign"]}
contentWidth={SCREEN_WIDTH}
/>
</View>
Expand Down

0 comments on commit 61376db

Please sign in to comment.