From c7f2999ee797ea5e3bfb29517a4f13206162cc6f Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sun, 14 Jun 2020 19:52:35 +0300
Subject: refactor: use lowercase in folder names

---
 src/pages/ProfilePage/ProfilePage.tsx | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 src/pages/ProfilePage/ProfilePage.tsx

(limited to 'src/pages/ProfilePage/ProfilePage.tsx')

diff --git a/src/pages/ProfilePage/ProfilePage.tsx b/src/pages/ProfilePage/ProfilePage.tsx
new file mode 100644
index 0000000..ee95769
--- /dev/null
+++ b/src/pages/ProfilePage/ProfilePage.tsx
@@ -0,0 +1,25 @@
+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 }) => {
+  return (
+    user
+      ? (
+        <>
+          <ProfileInfo id={user?._id} setUser={setUser} />
+          <Feed page="Feed" />
+        </>
+      )
+      : <SignInForm setUser={setUser} />
+  );
+};
+
+export default ProfilePage;
-- 
cgit v1.2.3

