- designing the dashboard

- resume preview
- create resume modal
This commit is contained in:
Amruth Pillai
2020-07-04 10:26:29 +05:30
parent dd5e594dc9
commit e1f1d84201
27 changed files with 556 additions and 26 deletions

View File

@ -3,6 +3,7 @@ import BaseModal from "./BaseModal";
import Button from "../components/shared/Button";
import ModalContext from "../contexts/ModalContext";
import UserContext from "../contexts/UserContext";
import { navigate } from "gatsby";
const AuthModal = () => {
const [isLoading, setLoading] = useState(false);
@ -15,8 +16,9 @@ const AuthModal = () => {
setLoading(false);
};
const handleGoToApp = () => {
console.log("Go to App");
const handleGotoApp = () => {
navigate("/app/dashboard");
authModal.setOpen(false);
};
const getTitle = () =>
@ -30,7 +32,7 @@ const AuthModal = () => {
const loggedInAction = (
<Fragment>
<Button outline className="mr-8" title="Logout" onClick={logout} />
<Button title="Go to App" onClick={handleGoToApp} />
<Button title="Go to App" onClick={handleGotoApp} />
</Fragment>
);