diff options
author | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-14 17:37:56 +0300 |
---|---|---|
committer | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-14 17:37:56 +0300 |
commit | a579341f91700a9ef3baecdd4d1e77535da7188e (patch) | |
tree | 12661c06ea0fcc70ce8ab7f2649a1f04039c6aba /src/Pages/ProfilePage/ProfilePage.tsx | |
parent | 657c340ea9e244b7f1041bac5be240d428d758e5 (diff) | |
download | which-ui-a579341f91700a9ef3baecdd4d1e77535da7188e.tar.gz |
fix: clear all eslint errors
Diffstat (limited to 'src/Pages/ProfilePage/ProfilePage.tsx')
-rw-r--r-- | src/Pages/ProfilePage/ProfilePage.tsx | 28 |
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; |