-
Notifications
You must be signed in to change notification settings - Fork 13
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
HT3 #33
base: master
Are you sure you want to change the base?
HT3 #33
Conversation
); | ||
}; | ||
|
||
const mapDispatchToProps = (dispatch, product) => ({ |
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.
тут вторым аргументом приходит не product, а все пропы
|
||
export const increment = (id) => ({ type: INCREMENT, payload: { id } }); | ||
export const decrement = (id) => ({ type: DECREMENT, payload: { id } }); | ||
export const increment = (id, name, price) => ({ |
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.
в mapDispatchToProps сюда передается только один аргумент
return ( | ||
<div className={styles.orderItem} data-id="product-amount"> | ||
<div className={styles.basket}> | ||
<h2>{product}</h2> |
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.
тут, на сколько я понимаю, отображается id продукта?
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.
Ага 😬
Домашка не доделана(