Route To Register Done

main
Pedram Keshavarzi 3 years ago
parent 600b04b4f9
commit 9fc4c07336
  1. 16
      src/view/LoginSignUp/index.js

@ -12,7 +12,7 @@ import VerificationInput from "../../components/verificationInput";
const LoginSignUp = ({ activeLogin }) => {
const [steps, setSteps] = useState(0);
const [index, setIndex] = useState(1);
const [register, setRegister] = useState(false);
const timeoutRef = useRef(null);
const focusHandler = (id) => {
@ -160,9 +160,13 @@ const LoginSignUp = ({ activeLogin }) => {
ورود
</Link>
<Link
to="/dashboard"
to=""
className="Login-box-form-btn w-full h-12 rounded-lg border border-solid border-red52 text-red52 flex items-center justify-center mt-4"
onClick={activeLogin}
onClick={() => {
setSteps(1);
setRegister(true);
}}
>
ثبت نام
</Link>
@ -208,11 +212,13 @@ const LoginSignUp = ({ activeLogin }) => {
<VerificationInput />
</div>
<Link
to="/dashboard"
to={register == true ? '/dashboard/register' : `/dashboard`}
className="Login-box-form-btn w-full h-12 rounded-lg bg-red52 text-white flex items-center justify-center mt-4"
onClick={() => {
activeLogin()
}}
>
تایید

Loading…
Cancel
Save