diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-28 19:42:12 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-28 19:42:12 +0100 |
commit | 4ffad967152136c69f1ef904dcfb02270a7e57a1 (patch) | |
tree | 567077e1a50d4e46d714b55b153f4aeb32974663 /components/Posts/PostList/index.js | |
parent | 0ed99e6c969119440b333cc961f4c312ee62731b (diff) | |
parent | 5305c18b05803bf0d032027e645c71ac59627621 (diff) | |
download | puszcza-4ffad967152136c69f1ef904dcfb02270a7e57a1.tar.gz puszcza-4ffad967152136c69f1ef904dcfb02270a7e57a1.zip |
Merge remote-tracking branch 'origin/develop' into feature/json-api
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 |