Files
talk/plugins/talk-plugin-local-auth/client/reducer.js
T
2018-05-02 20:58:34 -03:00

23 lines
457 B
JavaScript

import * as actions from './constants';
const initialState = {
showAddEmailDialog: true,
};
export default function reducer(state = initialState, action) {
switch (action.type) {
case actions.SHOW_ADD_EMAIL_DIALOG:
return {
...state,
showAddEmailDialog: true,
};
case actions.HIDE_ADD_EMAIL_DIALOG:
return {
...state,
showAddEmailDialog: false,
};
default:
return state;
}
}