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

1234567891011121314151617181920
  1. // @flow
  2. import { SET_TILE_VIEW } from './actionTypes';
  3. /**
  4. * Creates a (redux) action which signals to set the UI layout to be tiled view
  5. * or not.
  6. *
  7. * @param {boolean} enabled - Whether or not tile view should be shown.
  8. * @returns {{
  9. * type: SET_TILE_VIEW,
  10. * enabled: boolean
  11. * }}
  12. */
  13. export function setTileView(enabled: boolean) {
  14. return {
  15. type: SET_TILE_VIEW,
  16. enabled
  17. };
  18. }