(
+ ({ closeModal, className }, ref) => {
+ // const handleCloseModal = () => {
+ // closeModal();
+ // };
+
+ return (
+ //
+ //
Sign Up
+ // {/* ... SIGNUP CODE ... */}
+ //
+ //
+
+ );
+ },
+);
+
+export default SignUpModal;
diff --git a/client/src/components/Users/Auth/FacebookAuthBtn.tsx b/client/src/components/Users/Auth/FacebookAuthBtn.tsx
index ed127f48..24c13c04 100644
--- a/client/src/components/Users/Auth/FacebookAuthBtn.tsx
+++ b/client/src/components/Users/Auth/FacebookAuthBtn.tsx
@@ -8,7 +8,9 @@ import type { Theme } from '@mui/material/styles';
const useStyles = makeStyles()((theme: Theme) => {
return {
button: {
- height: 44,
+ fontSize: 17,
+ width: 180,
+ height: 50,
textTransform: 'none',
},
};
diff --git a/client/src/components/Users/Auth/GoogleAuthBtn.tsx b/client/src/components/Users/Auth/GoogleAuthBtn.tsx
index b21fba22..7bd2a6b3 100644
--- a/client/src/components/Users/Auth/GoogleAuthBtn.tsx
+++ b/client/src/components/Users/Auth/GoogleAuthBtn.tsx
@@ -1,5 +1,6 @@
import * as React from 'react';
import Button from '@mui/material/Button';
+import GoogleIcon from '@mui/icons-material/Google';
import { makeStyles } from 'tss-react/mui';
import type { Theme } from '@mui/material/styles';
@@ -7,7 +8,9 @@ import type { Theme } from '@mui/material/styles';
const useStyles = makeStyles()((theme: Theme) => {
return {
button: {
- height: 44,
+ fontSize: 17,
+ width: 180,
+ height: 50,
textTransform: 'none',
},
};
@@ -22,7 +25,12 @@ function GoogleAuthBtn(props: React.PropsWithChildren<{}>) {
};
return (
-
);
diff --git a/client/src/components/Users/Auth/PasswordInput.tsx b/client/src/components/Users/Auth/PasswordInput.tsx
index fc4b60a4..da7d585f 100644
--- a/client/src/components/Users/Auth/PasswordInput.tsx
+++ b/client/src/components/Users/Auth/PasswordInput.tsx
@@ -47,6 +47,7 @@ interface Props {
error?: string | null;
showStartAdornment?: boolean;
showForgot?: boolean;
+ placeholder?: string;
label?: string | null;
id?: string | null;
name?: string | null;
@@ -61,6 +62,7 @@ function PasswordInput({
error,
showStartAdornment = false,
showForgot = false,
+ placeholder,
label = null,
id = null,
name = null,
@@ -101,6 +103,7 @@ function PasswordInput({
void;
+ closeModal: () => void;
+}
+
+interface ModalState {
+ type: ModalType;
+}
+
+const ModalContext = createContext({} as IModalContext);
+
+interface ModalProviderProps {
+ children: ReactNode;
+}
+
+const ModalProvider: React.FC = ({ children }) => {
+ const [modal, setModal] = useState(null);
+
+ const openModal = (type: ModalType) => {
+ setModal({ type });
+ };
+
+ const closeModal = () => {
+ setModal(null);
+ };
+
+ return (
+
+ {children}
+
+ );
+};
+
+export { ModalContext, ModalProvider };
diff --git a/client/src/providers/index.ts b/client/src/providers/index.ts
index 3dc85186..2c3e454d 100644
--- a/client/src/providers/index.ts
+++ b/client/src/providers/index.ts
@@ -1 +1,2 @@
export * from './UserProvider';
+export * from './ModalProvider';
diff --git a/client/src/routes/routes.ts b/client/src/routes/routes.ts
index 08f5e660..6d823f34 100644
--- a/client/src/routes/routes.ts
+++ b/client/src/routes/routes.ts
@@ -5,7 +5,6 @@ import OurStory from '../views/OurStory';
import TrustAndSafety from '../views/TrustAndSafety';
import TermsOfService from '../views/TermsOfService';
import PrivacyPolicy from '../views/PrivacyPolicy';
-import Login from '../views/Login';
import Signup from '../views/Signup';
import SignupCitizen from '../views/SignupCitizen';
import SignupNonProfit from '../views/SignupNonProfit';
@@ -87,11 +86,6 @@ const routes: RouteMap = {
roles: [],
path: '/set-new-password',
},
- Login: {
- component: Login,
- roles: [],
- path: '/login',
- },
Signup: {
component: Signup,
roles: [],
diff --git a/client/src/views/Main.tsx b/client/src/views/Main.tsx
index b88bd527..a00846eb 100644
--- a/client/src/views/Main.tsx
+++ b/client/src/views/Main.tsx
@@ -14,8 +14,6 @@ const {
CookiePolicy,
ForgotPassword,
SetNewPassword,
- Login,
- Signup,
SignupCitizen,
SignupNonProfit,
Inbox,
@@ -54,10 +52,8 @@ function Main() {
{/* users */}
-
-