diff options
Diffstat (limited to 'src/components/profile/Feed.tsx')
-rw-r--r-- | src/components/profile/Feed.tsx | 30 |
1 files changed, 0 insertions, 30 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; |