aboutsummaryrefslogtreecommitdiff
path: root/src/components/common/post
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/common/post
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/common/post')
-rw-r--r--src/components/common/post/Post.tsx8
-rw-r--r--src/components/common/post/index.ts2
2 files changed, 4 insertions, 6 deletions
diff --git a/src/components/common/post/Post.tsx b/src/components/common/post/Post.tsx
index e5f68917..9fa167f2 100644
--- a/src/components/common/post/Post.tsx
+++ b/src/components/common/post/Post.tsx
@@ -7,14 +7,12 @@ import {SCREEN_WIDTH} from '../../../utils';
interface PostProps {
post: PostType;
}
-const Post: React.FC<PostProps> = ({post: {owner, instagram, social}}) => {
+const Post: React.FC<PostProps> = ({post: {owner, social, data}}) => {
return (
<>
- <PostHeader post={instagram} owner={owner} social={social} />
+ <PostHeader post={data} owner={owner} social={social} />
<View style={styles.image}>
- {instagram && (
- <Image style={styles.image} source={{uri: instagram.media_url}} />
- )}
+ {data && <Image style={styles.image} source={{uri: data.media_url}} />}
</View>
</>
);
diff --git a/src/components/common/post/index.ts b/src/components/common/post/index.ts
index 033f8a8d..358a59d5 100644
--- a/src/components/common/post/index.ts
+++ b/src/components/common/post/index.ts
@@ -1 +1 @@
-export {default} from './Post';
+export {default as Post} from './Post';