basis-stack/basis

View on GitHub
packages/client/src/modules/core/actions/index.js

Summary

Maintainability
A
0 mins
Test Coverage
import { push } from 'connected-react-router';

import * as actionTypes from '../constants/actionTypes';

export default {
  changeTheme: theme => ({ type: actionTypes.CHANGE_THEME, theme }),
  initialise: config => ({ type: actionTypes.INITIALISE, config }),

  // TODO: Need to incorporate state / query string params here also !!
  navigate: path => push(path),

  toggleBusy: () => ({ type: actionTypes.TOGGLE_BUSY })
};