You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

actions.js 427B

12345678910111213141516171819
  1. // @flow
  2. import { SET_SIDEBAR_VISIBILITY } from './actionTypes';
  3. /**
  4. * Redux action to hide or show the status bar.
  5. *
  6. * @param {boolean} visible - The new value of the visibility.
  7. * @returns {{
  8. * type: SET_SIDEBAR_VISIBILITY,
  9. * sideBarVisible: boolean
  10. * }}
  11. */
  12. export function setSideBarVisibility(visible: boolean) {
  13. return {
  14. type: SET_SIDEBAR_VISIBILITY,
  15. sideBarVisible: visible
  16. };
  17. }