aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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} />
);
};