您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }