aboutsummaryrefslogtreecommitdiff
path: root/src/Pages/ProfilePage
diff options
context:
space:
mode:
Diffstat (limited to 'src/Pages/ProfilePage')
-rw-r--r--src/Pages/ProfilePage/ProfilePage.tsx28
1 files changed, 8 insertions, 20 deletions
diff --git a/src/Pages/ProfilePage/ProfilePage.tsx b/src/Pages/ProfilePage/ProfilePage.tsx
index 8d082dc..a2dd3cc 100644
--- a/src/Pages/ProfilePage/ProfilePage.tsx
+++ b/src/Pages/ProfilePage/ProfilePage.tsx
@@ -1,30 +1,18 @@
-import React, {useState} from 'react';
-import {makeStyles} from '@material-ui/core/styles';
-import {User} from '../../types';
-import SignInForm from "./SignInForm";
-import ProfileInfo from "./ProfileInfo";
+import React from 'react';
+import { User } from '../../types';
+import SignInForm from './SignInForm';
+import ProfileInfo from './ProfileInfo';
interface PropTypes {
- id: string;
setUser: (newUser: User | undefined) => void;
user: User | undefined;
}
-const useStyles = makeStyles({
-
-});
-
-const ProfilePage: React.FC<PropTypes> = ({id, setUser, user}) => {
- const classes = useStyles();
-
+const ProfilePage: React.FC<PropTypes> = ({ setUser, user }) => {
return (
- user ? (
- <>
- <ProfileInfo id={user?._id || ''} setUser={setUser} />
- </>
- )
- : <SignInForm setUser={setUser} />
- )
+ user ? <ProfileInfo id={user?._id || ''} setUser={setUser} />
+ : <SignInForm setUser={setUser} />
+ );
};
export default ProfilePage;