aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/Feed.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/profile/Feed.tsx')
-rw-r--r--src/components/profile/Feed.tsx14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/components/profile/Feed.tsx b/src/components/profile/Feed.tsx
index 6780f8c5..a10d8d6d 100644
--- a/src/components/profile/Feed.tsx
+++ b/src/components/profile/Feed.tsx
@@ -1,17 +1,21 @@
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> = [];
- const dummyPost: PostType = {
- owner: user,
- };
- for (let i = 0; i < 20; i++) {
- posts.push(dummyPost);
+ for (let i = 0; i < 10; i++) {
+ const testPost: PostType = {
+ owner: user,
+ instagram: instaPosts[i],
+ social: 'Instagram',
+ };
+ posts.push(testPost);
}
return (
<>