Skip to content

Hometask 4#66

Open
artem-awesome wants to merge 3 commits intoromabelka:masterfrom
artem-awesome:hometask_4
Open

Hometask 4#66
artem-awesome wants to merge 3 commits intoromabelka:masterfrom
artem-awesome:hometask_4

Conversation

@artem-awesome
Copy link

No description provided.

@@ -0,0 +1,10 @@
import {SELECT_ARTICLE} from '../constants'

export default (selected = null, action) => {
Copy link
Owner

Choose a reason for hiding this comment

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

не дроби редюсеры слишком сильно: объедини селект и календарь в один

const {type, payload} = action

switch(type) {
case SELECT_ARTICLE: return payload.selected
Copy link
Owner

Choose a reason for hiding this comment

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

здесь лучше просто id хранить, а не все что в Select приходит

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