diff --git a/client/src/components/Users/Auth/SignUpCitizen/StepOne.tsx b/client/src/components/Users/Auth/SignUpCitizen/StepOne.tsx
index 910170ad..6d848d30 100644
--- a/client/src/components/Users/Auth/SignUpCitizen/StepOne.tsx
+++ b/client/src/components/Users/Auth/SignUpCitizen/StepOne.tsx
@@ -1,4 +1,4 @@
-import React, { useState } from 'react';
+import React, { useContext, useState } from 'react';
import { Box, Button, Checkbox, Typography, FormControlLabel } from '@mui/material';
import { string, boolean } from 'yup';
@@ -8,6 +8,7 @@ import PasswordInput from '../PasswordInput';
import EmailInput from '../EmailInput';
import NameInput from '../NameInput';
import { ValidationUtils } from '../../../../utils';
+import { ModalContext } from '../../../../providers/ModalProvider';
import { useStyles } from './styles/styles';
@@ -55,6 +56,7 @@ type TStepOneProps = {
export default function StepOne({ initData, handleNext }: TStepOneProps) {
const { classes } = useStyles();
+ const { openModal } = useContext(ModalContext);
Object.keys(initialFormData).forEach((key) => {
//@ts-ignore
@@ -164,9 +166,12 @@ export default function StepOne({ initData, handleNext }: TStepOneProps) {
align="left"
gutterBottom
>
- {/* TODO: Add link to "Login", this will open the login modal */}
- Already have an account?
+ Already have an account?
+
+
({
fontSize: 14,
marginBottom: 20,
},
+ link: {
+ background: 'none',
+ border: 'none',
+ padding: '0',
+ font: 'inherit',
+ cursor: 'pointer',
+ textDecoration: 'underline',
+ color: 'inherit',
+ ':hover': {
+ fontWeight: 'bold',
+ },
+ },
}));
diff --git a/client/src/components/Users/Auth/SignUpUserAndNonprofit/SignUpUserAndNonprofit.tsx b/client/src/components/Users/Auth/SignUpUserAndNonprofit/SignUpUserAndNonprofit.tsx
index 0349b96e..c4588efe 100644
--- a/client/src/components/Users/Auth/SignUpUserAndNonprofit/SignUpUserAndNonprofit.tsx
+++ b/client/src/components/Users/Auth/SignUpUserAndNonprofit/SignUpUserAndNonprofit.tsx
@@ -32,6 +32,8 @@ import { yupResolver } from '@hookform/resolvers/yup';
import { classifications } from './Classifications';
import { httpGetValidateEin, httpPostNonprofitSignup } from './http-sing-up-nonprofit';
import InputMask from 'react-input-mask';
+import { ModalContext } from '../../../../providers/ModalProvider';
+import { useContext } from 'react';
const defaultOrg: FormData = {
name: '',
@@ -56,6 +58,7 @@ const defaultOrg: FormData = {
export const SignUpUserAndNonprofit = () => {
const { classes } = useStyles();
+ const { openModal } = useContext(ModalContext);
const [activeStep, setActiveStep] = React.useState(0);
const [einStepIsValid, setEINStepIsValid] = React.useState(false);
const [einApiValidateError, setEinApiValidateError] = React.useState('');
@@ -196,7 +199,8 @@ export const SignUpUserAndNonprofit = () => {
- Already have an account? Log In
+ Already have an account?
+ {' '}