Skip to content

Commit

Permalink
feat(view-single-article-functionality) view single article functiona…
Browse files Browse the repository at this point in the history
…lity

- write test
- add actions
- add articlereducer
- add logic to make the static component work

[Finishes 162604730]
  • Loading branch information
sulenchy committed Dec 20, 2018
1 parent b58dba3 commit 96b1dea
Show file tree
Hide file tree
Showing 18 changed files with 501 additions and 177 deletions.
28 changes: 28 additions & 0 deletions mockdata/singleArticle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
export default {
id: 19,
title: 'The 5 Basic Statistics Concepts Data Scientists Need to Know',
slug: 'how-to-write-you-name-230111fe',
description: 'If you want to learn a better and more memorable way',
body: "let's talk about names, what is your name and what does it mean? How many people have laughed at your name and how many have cared about how you name was given to you?",
readTime: 2400,
articleImage: 'https://bit.ly/2UysylQ',
category: 'naming',
rating: null,
likes: 0,
dislikes: 0,
status: 'publish',
commentsCount: 0,
createdAt: '2018-01-28T11:17:55.507Z',
updatedAt: '2018-01-28T11:17:55.557Z',
author: {
id: 6,
fullName: 'Terso Artsen',
avatarUrl: 'https://www.hahafakeurl.com/',
roleId: 3,
email: 'solomon.sulaiman@andela.com',
bio: 'I am a girl that does magic tricks',
followers: 0,
following: 0
},
comments: []
};
Loading

0 comments on commit 96b1dea

Please sign in to comment.