WelcomePage fix
This commit is contained in:
@ -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"
|
||||
>
|
||||
|
Reference in New Issue
Block a user