aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilyayudovin <ilyayudovin123@gmail.com>2020-06-14 18:07:14 +0300
committerilyayudovin <ilyayudovin123@gmail.com>2020-06-14 18:07:14 +0300
commite1c44e40680d52cd1862e795fc7fbf4ab4af929f (patch)
treeaa85d7d74a01c60939f43f65e8d4bc832cf4e44d
parenta579341f91700a9ef3baecdd4d1e77535da7188e (diff)
downloadwhich-ui-e1c44e40680d52cd1862e795fc7fbf4ab4af929f.tar.gz
add feed to profile
-rw-r--r--src/Pages/ProfilePage/ProfilePage.tsx8
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} />
);
};