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 465B

1234567891011121314151617181920
  1. // @flow
  2. import { SET_SIDEBAR_VISIBLE } from './actionTypes';
  3. /**
  4. * Sets the visibility of {@link WelcomePageSideBar}.
  5. *
  6. * @param {boolean} visible - If the {@code WelcomePageSideBar} is to be made
  7. * visible, {@code true}; otherwise, {@code false}.
  8. * @returns {{
  9. * type: SET_SIDEBAR_VISIBLE,
  10. * visible: boolean
  11. * }}
  12. */
  13. export function setSideBarVisible(visible: boolean) {
  14. return {
  15. type: SET_SIDEBAR_VISIBLE,
  16. visible
  17. };
  18. }