diff options
author | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-14 18:07:14 +0300 |
---|---|---|
committer | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-14 18:07:14 +0300 |
commit | e1c44e40680d52cd1862e795fc7fbf4ab4af929f (patch) | |
tree | aa85d7d74a01c60939f43f65e8d4bc832cf4e44d | |
parent | a579341f91700a9ef3baecdd4d1e77535da7188e (diff) | |
download | which-ui-e1c44e40680d52cd1862e795fc7fbf4ab4af929f.tar.gz |
add feed to profile
-rw-r--r-- | src/Pages/ProfilePage/ProfilePage.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Pages/ProfilePage/ProfilePage.tsx b/src/Pages/ProfilePage/ProfilePage.tsx index a2dd3cc..65c3fcf 100644 --- a/src/Pages/ProfilePage/ProfilePage.tsx +++ b/src/Pages/ProfilePage/ProfilePage.tsx @@ -2,15 +2,19 @@ import React from 'react'; import { User } from '../../types'; import SignInForm from './SignInForm'; import ProfileInfo from './ProfileInfo'; +import Feed from "../../Components/Feed/Feed"; interface PropTypes { setUser: (newUser: User | undefined) => void; user: User | undefined; } -const ProfilePage: React.FC<PropTypes> = ({ setUser, user }) => { +const ProfilePage: React.FC<PropTypes> = ({ setUser, user}) => { return ( - user ? <ProfileInfo id={user?._id || ''} setUser={setUser} /> + user ? <> + <ProfileInfo id={user?._id} setUser={setUser} /> + <Feed page={'Feed'}/> + </> : <SignInForm setUser={setUser} /> ); }; |