diff options
Diffstat (limited to 'src/components/profile')
-rw-r--r-- | src/components/profile/Feed.tsx | 30 | ||||
-rw-r--r-- | src/components/profile/index.ts | 1 |
2 files changed, 0 insertions, 31 deletions
diff --git a/src/components/profile/Feed.tsx b/src/components/profile/Feed.tsx deleted file mode 100644 index 3353d25b..00000000 --- a/src/components/profile/Feed.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import React from 'react'; -import {PostType, UserType} from '../../types'; -import {Post} from '../common'; -import {AuthContext} from '../../routes/authentication'; - -interface FeedProps { - user: UserType; -} -const Feed: React.FC<FeedProps> = ({user}) => { - const {instaPosts} = React.useContext(AuthContext); - const posts: Array<PostType> = []; - for (let i = 0; i < 10; i++) { - const testPost: PostType = { - owner: user, - social: 'Instagram', - socialHandle: 'igHandle', - data: instaPosts[i], - }; - posts.push(testPost); - } - return ( - <> - {posts.map((post, index) => ( - <Post key={index} post={post} /> - ))} - </> - ); -}; - -export default Feed; diff --git a/src/components/profile/index.ts b/src/components/profile/index.ts index 4eb435df..e2063e26 100644 --- a/src/components/profile/index.ts +++ b/src/components/profile/index.ts @@ -4,5 +4,4 @@ export {default as Moment} from './Moment'; export {default as ProfileCutout} from './ProfileCutout'; export {default as ProfileBody} from './ProfileBody'; export {default as ProfileHeader} from './ProfileHeader'; -export {default as Feed} from './Feed'; export {default as CaptionScreenHeader} from './CaptionScreenHeader'; |