-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
161348758 User should be able to create an article #19
Conversation
</div> | ||
); | ||
|
||
CreateArticle.propTypes = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 2 locations. Consider refactoring.
b11bdf9
to
e621818
Compare
e621818
to
c2a22d7
Compare
kindly fix the merge conflicts |
2afda60
to
a9c2929
Compare
.env
Outdated
@@ -0,0 +1 @@ | |||
APP_URL=https://ah-backend-thanos-staging.herokuapp.com/api |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a new line at the end of file
payload: imageUrl, | ||
}); | ||
|
||
const tok = localStorage.getItem('token'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does tok mean??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am going to update it
handleSubmit = (event) => { | ||
event.preventDefault(); | ||
const { postArticle, createArticleReducer } = this.props; | ||
postArticle({ ...createArticleReducer.articlePostData, tag_list: createArticleReducer.articlePostData.tag_list.split(', ') }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line is too long
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed It
Resolve merge conflicts |
a9c2929
to
99cf14a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 14672 lines exceeds the maximum allowed for the inline comments feature.
99cf14a
to
97e897b
Compare
|
||
const mapStateToProps = ({ createArticleReducer }) => ({ createArticleReducer }); | ||
|
||
export const mapDispatchToProps = dispatch => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 2 locations. Consider refactoring.
aedca19
to
5e5d041
Compare
5e5d041
to
fcb64e7
Compare
const headers = { | ||
headers: { Authorization: token }, | ||
}; | ||
return axios.post(url, userdata, headers) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 2 locations. Consider refactoring.
expect(CreateArticlePageComponent).toMatchSnapshot(); | ||
}); | ||
|
||
it('should dispatch a method to get user input', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 2 locations. Consider refactoring.
932066e
to
b053275
Compare
a02e624
to
cd38ab7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried this out on Heroku. All good.
cd38ab7
to
80cc17c
Compare
- Add user create article form. - Add container for create article form. - Add component for create article form. - Add actions and reducers for create article. [#161348758]
80cc17c
to
dea500e
Compare
Code Climate has analyzed commit dea500e and detected 0 issues on this pull request. View more on Code Climate. |
What does this PR do?
Add feature cor create an article.
Description of Task to be completed?
How should this be manually tested?
/createArticle
What are the relevant pivotal tracker stories?
#161348758
Screenshots