diff options
author | Ivan Chen <ivan@thetaggid.com> | 2020-10-22 17:42:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 17:42:29 -0400 |
commit | 52a3fe743e6122d157eaab3ad7bab0c70a96676b (patch) | |
tree | 564c5df3864a0d0fe09f7c18613d4cf5a1093170 /src/components/profile/Feed.tsx | |
parent | 08f9aebbaef871629323767c93c9e54cea527bed (diff) |
[TMA-242] Twitter and Facebook Tagg View (#63)
* modified the way we store social media data, initial skeleton
* MVP? Twitter done?
* cleaned up some things
* forgot to lint and cleaned up some more code
* minor change to text display
* fixed some UI bug, linting, and minor adjustment to posts UI
* fixed a couple of things
* added DateLabel, Facebook taggs view, fixed minor stuff
* Some small changes for the PR
* removed unused Feed
Co-authored-by: Ashm Walia <ashmwalia@outlook.com>
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; |