File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
front/src/components/survey Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ const SurveyQuestionsList: React.FC<SurveyQuestionsListProps> = ({
26
26
trackingEvent,
27
27
saveCurrentSurvey,
28
28
} ) => {
29
- const [ nextButtonState , setNextButtonState ] = React . useState ( false ) ;
29
+ const [ nextButtonState ] = React . useState ( false ) ;
30
+
30
31
const onSwiperIndexChanged = useCallback (
31
32
( item : { index : number ; prevIndex : number } ) => {
32
33
if ( saveCurrentSurvey ) saveCurrentSurvey ( item . index ) ;
33
- setNextButtonState ( ! nextButtonState ) ;
34
34
} ,
35
- [ nextButtonState , saveCurrentSurvey ]
35
+ [ saveCurrentSurvey ]
36
36
) ;
37
37
38
38
return (
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ const TndOnboarding: React.FC<Props> = ({ onBoardingIsDone }) => {
105
105
< HTML
106
106
WebView = { WebView }
107
107
source = { { html : intro . texte1 } }
108
+ ignoredStyles = { [ "color" , "textAlign" ] }
108
109
contentWidth = { SCREEN_WIDTH }
109
110
/>
110
111
< View style = { styles . validateButton } >
@@ -120,6 +121,7 @@ const TndOnboarding: React.FC<Props> = ({ onBoardingIsDone }) => {
120
121
< HTML
121
122
WebView = { WebView }
122
123
source = { { html : intro . texte2 } }
124
+ ignoredStyles = { [ "color" , "textAlign" ] }
123
125
contentWidth = { SCREEN_WIDTH }
124
126
/>
125
127
</ View >
You can’t perform that action at this time.
0 commit comments