Skip to content

домашняя работа 5#52

Open
Joxter wants to merge 1 commit into
romabelka:masterfrom
Joxter:mn_ht5
Open

домашняя работа 5#52
Joxter wants to merge 1 commit into
romabelka:masterfrom
Joxter:mn_ht5

Conversation

@Joxter
Copy link
Copy Markdown

@Joxter Joxter commented Mar 14, 2018

Делал на скорую руку и не доделал, может перед проверкой успею поделать еще

Comment thread src/components/comment.js

return (state, ownProps) => ({
comment: commentSelector(state, ownProps)
comment: commentSelector(state, ownProps) || {}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|| {} - скользкая дорожка)

Comment thread src/reducer/comments.js

case LOAD_COMMENTS + SUCCESS:
const {response} = payload;
response.forEach((comment) => {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

у нас для этого есть arrToMap

}

render() {
const {isOpen, toggleOpen} = this.props
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

еще лоадер нужен был

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants