123456789101112131415161718192021 |
- import ChatConstants from '../constants/ChatConstants';
- import AppDispatcher from '../dispatcher/AppDispatcher';
- const ChatActions = {
- toggleVisibility() {
- AppDispatcher.handleViewAction({
- actionType: ChatConstants.TOGGLE_VISIBILITY
- });
- },
- submitMessage(message, className, received) {
- AppDispatcher.handleViewAction({
- actionType: ChatConstants.SUBMIT_MESSAGE,
- message,
- className,
- received
- });
- }
- };
- export default ChatActions;
|