@@ -23,16 +23,17 @@ import Animated, {
2323} from 'react-native-reanimated' ;
2424import Carousel , { ICarouselInstance } from 'react-native-reanimated-carousel' ;
2525
26+ import { IThemeColors } from '../../styles/themes' ;
27+ import { View as ThemedView } from '../../styles/components' ;
28+ import { BodyM , BodyMB , Display , Footnote } from '../../styles/text' ;
2629import SafeAreaInset from '../../components/SafeAreaInset' ;
2730import Dot from '../../components/SliderDots' ;
2831import Button from '../../components/buttons/Button' ;
2932import ButtonTertiary from '../../components/buttons/ButtonTertiary' ;
30- import { useAppDispatch } from '../../hooks/redux' ;
33+ import { useAppDispatch , useAppSelector } from '../../hooks/redux' ;
3134import type { OnboardingStackScreenProps } from '../../navigation/types' ;
3235import { updateUser } from '../../store/slices/user' ;
33- import { View as ThemedView } from '../../styles/components' ;
34- import { BodyM , BodyMB , Display } from '../../styles/text' ;
35- import { IThemeColors } from '../../styles/themes' ;
36+ import { isGeoBlockedSelector } from '../../store/reselect/user' ;
3637
3738type Slide = {
3839 color : keyof IThemeColors ;
@@ -68,6 +69,7 @@ const Slide = ({
6869} : SlideProps ) : ReactElement => {
6970 const { t } = useTranslation ( 'onboarding' ) ;
7071 const dimensions = useWindowDimensions ( ) ;
72+ const isGeoBlocked = useAppSelector ( isGeoBlockedSelector ) ;
7173
7274 // because we can't properly scala image inside the <Swiper let's calculate with by hand
7375 const imageStyles = useMemo (
@@ -93,14 +95,20 @@ const Slide = ({
9395 parent = { Display }
9496 components = { { accent : < Display color = { color } /> } }
9597 />
96- < Trans
97- style = { styles . text }
98- t = { t }
99- i18nKey = { `slide${ index } _text` }
100- parent = { BodyM }
101- color = "secondary"
102- components = { { accent : < BodyMB color = "primary" /> } }
103- />
98+
99+ < View style = { styles . text } >
100+ < Trans
101+ t = { t }
102+ i18nKey = { `slide${ index } _text` }
103+ parent = { BodyM }
104+ color = "secondary"
105+ components = { { accent : < BodyMB color = "primary" /> } }
106+ />
107+
108+ { index === 1 && isGeoBlocked && (
109+ < Footnote style = { styles . note } > { t ( 'slide1_note' ) } </ Footnote >
110+ ) }
111+ </ View >
104112
105113 { isLast ? (
106114 < View style = { styles . buttonsContainer } >
@@ -276,7 +284,10 @@ const styles = StyleSheet.create({
276284 } ,
277285 text : {
278286 marginTop : 4 ,
279- minHeight : 90 ,
287+ minHeight : 110 ,
288+ } ,
289+ note : {
290+ marginTop : 6 ,
280291 } ,
281292 buttonsContainer : {
282293 flexDirection : 'row' ,
0 commit comments