summaryrefslogtreecommitdiff
path: root/src/store/modals.js
blob: 135515cf3747195e214e0d42cda2affb2df5cc3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export function openModal(modalName) {
  return dispatch => {
    dispatch(`openModal:${modalName}`, s => {
      s.modals[modalName] = true;
    });
  };
}

export function closeModal(modalName) {
  return dispatch => {
    dispatch(`closeModal:${modalName}`, s => {
      s.modals[modalName] = false;
    });
  };
}

export const initialState = { apiConfig: false };