aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs/TaggsFeed.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@thetaggid.com>2020-10-07 20:17:13 -0400
committerGitHub <noreply@github.com>2020-10-07 20:17:13 -0400
commit0f332655d2b64700623f25912d2610517fb954b6 (patch)
treebf0f4b6fb1f5f226dea4a6ee9d312d28a258bda4 /src/components/taggs/TaggsFeed.tsx
parente86478f52e191c52fea20980278174af46f50953 (diff)
[TMA-186] Instagram Taggs - Frontend (#45)
* Renamed Moments(Bar) to Taggs(Bar) * created initial navigation and empty social media taggs screen * made more progress for the header styling * Finished social media taggs screen, organized code structure * linted stuff D: * moved bar height utility function to utils * moved color constants to constants * moved avatar title * updated comments for social media taggs * NOW the file is there
Diffstat (limited to 'src/components/taggs/TaggsFeed.tsx')
-rw-r--r--src/components/taggs/TaggsFeed.tsx29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/components/taggs/TaggsFeed.tsx b/src/components/taggs/TaggsFeed.tsx
new file mode 100644
index 00000000..3f27e248
--- /dev/null
+++ b/src/components/taggs/TaggsFeed.tsx
@@ -0,0 +1,29 @@
+import React from 'react';
+import {InstagramPostType, UserType} from '../../types';
+import {TaggPost} from './';
+
+interface TaggsFeedProps {
+ user: UserType;
+ socialHandle: string;
+ posts: Array<InstagramPostType>;
+}
+
+const TaggsFeed: React.FC<TaggsFeedProps> = ({user, socialHandle, posts}) => {
+ return (
+ <>
+ {posts?.map((post, index) => (
+ <TaggPost
+ key={index}
+ post={{
+ owner: user,
+ social: 'Instagram',
+ socialHandle: socialHandle,
+ data: post,
+ }}
+ />
+ ))}
+ </>
+ );
+};
+
+export default TaggsFeed;