@ -104,7 +104,7 @@ function SignUp(props: { navigation: any; }) {
break ;
break ;
case ( errorList . invalidPassword ) :
case ( errorList . invalidPassword ) :
Alert . alert ( "Votre Password doit contenir au moins une maj uscule, une majuscule, un chiffre et un caractère spécial (#?!@$%^&*-)") ;
Alert . alert ( "Votre mot de passe doit contenir au moins une min uscule, une majuscule, un chiffre et un caractère spécial (#?!@$%^&*-)") ;
dispatch ( updateInvalidPassword ( false ) ) ;
dispatch ( updateInvalidPassword ( false ) ) ;
break ;
break ;
@ -165,7 +165,7 @@ function SignUp(props: { navigation: any; }) {
< PickerGreySmall title = 'Choisir le sexe' valueChange = { ( value :string ) = > setSelectedSex ( value ) } values = { [ { label : 'Homme' , value : 'Homme' } , { label : 'Femme' , value : 'Femme' } , { label : 'Autre' , value : 'Autre' } ] } / >
< PickerGreySmall title = 'Choisir le sexe' valueChange = { ( value :string ) = > setSelectedSex ( value ) } values = { [ { label : 'Homme' , value : 'Homme' } , { label : 'Femme' , value : 'Femme' } , { label : 'Autre' , value : 'Autre' } ] } / >
< / View >
< / View >
< Pressable style = { styles . button } onPress = { ( ) = > createAccount ( pseudo , password , date , selectedNationality , selectedSex , dispatch , navigation ) } >
< Pressable style = { styles . button } onPress = { ( ) = > createAccount ( pseudo , password , date , selectedNationality , selectedSex , dispatch , navigation ) } >
< Text style = { styles . text} > S ' inscrire < / Text >
< Text style = { styles . bu ttonT ext} > S ' inscrire < / Text >
< / Pressable >
< / Pressable >
< Pressable onPress = { ( ) = > navigation . navigate ( 'SignIn' ) } >
< Pressable onPress = { ( ) = > navigation . navigate ( 'SignIn' ) } >
< Text style = { styles . textLink } > J ' ai d é j à un compte < / Text >
< Text style = { styles . textLink } > J ' ai d é j à un compte < / Text >