From 5ba6455b2aa6c75c336628bda59e70b46e3b1d6b Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Fri, 7 Aug 2020 22:42:50 +0300
Subject: refactor: separate Auth pages

---
 src/pages/AuthPage/AuthPage.tsx | 50 -----------------------------------------
 1 file changed, 50 deletions(-)
 delete mode 100644 src/pages/AuthPage/AuthPage.tsx

(limited to 'src/pages/AuthPage/AuthPage.tsx')

diff --git a/src/pages/AuthPage/AuthPage.tsx b/src/pages/AuthPage/AuthPage.tsx
deleted file mode 100644
index ad93463..0000000
--- a/src/pages/AuthPage/AuthPage.tsx
+++ /dev/null
@@ -1,50 +0,0 @@
-import React, { useState } from 'react';
-import { makeStyles } from '@material-ui/core/styles';
-import SignInForm from './SignInForm';
-import SignUpForm from './SignUpForm';
-
-const useStyles = makeStyles({
-  formTransfer: {
-    display: 'flex',
-    justifyContent: 'center'
-  },
-  transferButton: {
-    marginLeft: 10,
-    color: 'green',
-    cursor: 'pointer'
-  }
-});
-
-const AuthPage: React.FC = () => {
-  const [auth, setAuth] = useState<'signIn' | 'signUp'>('signIn');
-  const classes = useStyles();
-
-  const handleRedirect = () => {
-    setAuth(auth === 'signIn' ? 'signUp' : 'signIn');
-  };
-
-  const footerInfo = {
-    signIn: ['Don\'t have an account?', 'Sign up'],
-    signUp: ['Already have an account?', 'Sign in']
-  };
-
-  return (
-    <>
-      {auth === 'signIn' && <SignInForm />}
-      {auth === 'signUp' && <SignUpForm />}
-      <div className={classes.formTransfer}>
-        <div>{footerInfo[auth][0]}</div>
-        <span
-          onClick={handleRedirect}
-          className={classes.transferButton}
-          role="presentation"
-        >
-          {footerInfo[auth][1]}
-        </span>
-      </div>
-    </>
-  );
-};
-
-export default AuthPage;
-
-- 
cgit v1.2.3

