Compare commits
2 Commits
1434792d42
...
0860591d28
Author | SHA1 | Date | |
---|---|---|---|
|
0860591d28 | ||
4a20d5e4fa |
@ -1,4 +1,5 @@
|
||||
import React, { useState } from "react";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
|
||||
import { useFormValidation } from "@hooks/useFormValidation";
|
||||
import { useNotification } from "@hooks/useNotification";
|
||||
@ -17,6 +18,7 @@ import "./modalRegistration.scss";
|
||||
export const ModalRegistration = ({ active, setActive }) => {
|
||||
const [loader, setLoader] = useState(false);
|
||||
const [isPartner, setIsPartner] = useState(false);
|
||||
const navigate = useNavigate();
|
||||
|
||||
const fields = {
|
||||
username: "",
|
||||
@ -145,6 +147,7 @@ export const ModalRegistration = ({ active, setActive }) => {
|
||||
onClick={async (e) => {
|
||||
e.preventDefault();
|
||||
await handleSubmit(e);
|
||||
navigate("/welcome-page");
|
||||
}}
|
||||
styles="button-box__submit"
|
||||
>
|
||||
|
@ -1,4 +1,5 @@
|
||||
import React, { useState } from "react";
|
||||
import { useNavigate } from "react-router";
|
||||
|
||||
import { AuthHeader } from "@components/Common/AuthHeader/AuthHeader";
|
||||
import BaseButton from "@components/Common/BaseButton/BaseButton";
|
||||
@ -12,6 +13,7 @@ import "./welcomePage.scss";
|
||||
|
||||
export const WelcomePage = () => {
|
||||
const [loader, setLoader] = useState(false);
|
||||
const navigate = useNavigate();
|
||||
|
||||
return (
|
||||
<div className="welcome-page">
|
||||
@ -39,6 +41,7 @@ export const WelcomePage = () => {
|
||||
<BaseButton
|
||||
onClick={() => {
|
||||
setLoader(true);
|
||||
navigate("/profile");
|
||||
}}
|
||||
styles="button-box__submit"
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user