diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-25 22:32:52 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-25 22:32:52 +0100 |
commit | 9e920822e36cb554d94ba1f3ffd27c8339968156 (patch) | |
tree | 8faf3004f56b693edbec808c5c32163b9e17f1d0 /components/Posts/PostList/index.js | |
parent | 5d7fb66aac4fdb09ab9d1264e194529e9636025b (diff) | |
parent | 5305c18b05803bf0d032027e645c71ac59627621 (diff) | |
download | puszcza-9e920822e36cb554d94ba1f3ffd27c8339968156.tar.gz puszcza-9e920822e36cb554d94ba1f3ffd27c8339968156.zip |
Merge remote-tracking branch 'origin/develop' into oboz
Diffstat (limited to 'components/Posts/PostList/index.js')
-rw-r--r-- | components/Posts/PostList/index.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/Posts/PostList/index.js b/components/Posts/PostList/index.js index 11d44ff..7e0b1f4 100644 --- a/components/Posts/PostList/index.js +++ b/components/Posts/PostList/index.js @@ -12,11 +12,12 @@ export const getPosts = async () => { } } -export const parsePosts = posts => - posts.map(post => ({ +export const parsePosts = (posts) => + posts.map((post) => ({ title: post.content.meta.title, + image: post.content.meta.image, description: post.content.description, - route: post.route + route: post.route, })) export default PostList |