+
+
+
+
+
+ {errors.name && (
+
)}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Set Up Password
-
-
+
+
+
+ And your phone number?
+
-
- {showPassword.password1 ? (
-
setShowPassword(prev => ({ ...prev, password1: !(showPassword.password1) }))}
- />
- ) : (
- setShowPassword(prev => ({ ...prev, password1: !(showPassword.password1) }))}
- />
- )}
-
-
- {errors['phone'] && (
- {errors['phone']?.message}
- )}
-
-
-
+ {errors.phone && (
+
+
+ {errors["phone"]?.message}
+
+
+ )}
+
-
-
-
- Confirm your password
-
-
+
+
+
+ Set up a username
+
-
- {showPassword.password2 ? (
-
setShowPassword(prev => ({ ...prev, password2: !(showPassword.password2) }))}
- />
- ) : (
- setShowPassword(prev => ({ ...prev, password2: !(showPassword.password2) }))}
- />
- )}
+
+ {errors.username && (
+
+
+ {errors["username"]?.message}
+
+
+ )}
+
+
+
+
+
+ Set Up Password
+
+
+
+
+ {showPassword.password1 ? (
+
+ setShowPassword((prev) => ({
+ ...prev,
+ password1:
+ !showPassword.password1,
+ }))
+ }
+ />
+ ) : (
+
+ setShowPassword((prev) => ({
+ ...prev,
+ password1:
+ !showPassword.password1,
+ }))
+ }
+ />
+ )}
+
-
- {errors['phone'] && (
- {errors['phone']?.message}
- )}
+ {errors.password && (
+
+
+ {errors.password?.message}
+
+
+ )}
+
+
+
+
+
+
+ Confirm your password
+
+
+
+ {showPassword.password2 ? (
+
+ setShowPassword((prev) => ({
+ ...prev,
+ password2:
+ !showPassword.password2,
+ }))
+ }
+ />
+ ) : (
+
+ setShowPassword((prev) => ({
+ ...prev,
+ password2:
+ !showPassword.password2,
+ }))
+ }
+ />
+ )}
+
+
+ {errors.passwordConfirmation && (
+
+
+ {errors["passwordConfirmation"]?.message}
+
+
+ )}
-
-
-
-
-
-
- );
+
+
+
+ );
};
export default Register;