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

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