diff options
Diffstat (limited to 'src/components/common/post')
-rw-r--r-- | src/components/common/post/Post.tsx | 8 | ||||
-rw-r--r-- | src/components/common/post/index.ts | 2 |
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'; |