mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-16 10:18:48 +00:00
17 lines
417 B
JavaScript
17 lines
417 B
JavaScript
import {SET_DIRECT_MESSAGES, SET_USERNAME_VALID, SET_USERNAME_INVALID} from '../types';
|
|
|
|
const initialState = {
|
|
directMessages: null,
|
|
};
|
|
|
|
export default function(state = initialState, action) {
|
|
switch(action.type) {
|
|
case SET_DIRECT_MESSAGES:
|
|
return {
|
|
...state,
|
|
directMessages: action.payload
|
|
};
|
|
default:
|
|
return state;
|
|
}
|
|
} |