Sha256: 630fd8b80b391b51b0b120ef4fd06a68f059f4ebf1fb1fc4240e568e5aeee38c
Contents?: true
Size: 597 Bytes
Versions: 2
Compression:
Stored size: 597 Bytes
Contents
import { CONVERSATION } from '../actions/Conversation'; const conversationState = { author: null, conversationId: null, senderId: null, senderClass: null, recipient: null, recipientClass: null, }; export function conversation(state = conversationState, action) { switch (action.type) { case CONVERSATION: let data = action.response; return { ...state, conversationId: data.conversation_id, author: data.author, senderId: data.sender_id, senderClass: data.sender_class, recipient: data.recipient, recipientClass: data.recipient_class }; default: return state; } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
denshobato_chat_panel-0.0.2 | lib/react/reducers/Conversation.jsx |
denshobato_chat_panel-0.0.1 | lib/react/reducers/Conversation.jsx |