12345678910111213141516171819 |
- const ChatConstants = require('../constants/ChatConstants');
- let AppDispatcher = require('../dispatcher/AppDispatcher');
- let ChatActions = {
- toggleChat() {
- AppDispatcher.handleViewAction({
- actionType: ChatConstants.TOGGLE_CHAT
- });
- },
- submitMessage(message, className) {
- AppDispatcher.handleViewAction({
- actionType: ChatConstants.SUBMIT_MESSAGE,
- message: message,
- className: className
- });
- }
- };
- module.exports = ChatActions;
|