Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Potem jeżeli chodzi o dodawanie nowych kart:
- Brakuje Ci w store.js:
- import cardsReducer from "./cardsRedux";
- na samym początku i potem:
- const reducers = {
- columns: columnsReducer,
- cards: cardsReducer
- };
- tutaj powinien być reducer od cards dopisany.
- I w ColumnContainer dispatchowanie powinno być trochę inaczej dopisane:
- const mapDispatchToProps = (dispatch, props) => ({
- addCard: title => dispatch(createActionAddCard({
- columnId: props.id,
- title,
- })),
- });
- Ty masz tak w tej chwili:
- const mapDispatchToProps = (dispatch, props) => {
- return {
- addCard: title => dispatch(createActionAddCard({ columnId: props, title }))
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement