jiti-meet/react/features/welcome/actions.js

21 lines
465 B
JavaScript
Raw Normal View History

2018-02-02 14:50:16 +00:00
// @flow
import { SET_SIDEBAR_VISIBLE } from './actionTypes';
2018-02-02 14:50:16 +00:00
/**
* Sets the visibility of {@link WelcomePageSideBar}.
2018-02-02 14:50:16 +00:00
*
* @param {boolean} visible - If the {@code WelcomePageSideBar} is to be made
* visible, {@code true}; otherwise, {@code false}.
2018-02-02 14:50:16 +00:00
* @returns {{
* type: SET_SIDEBAR_VISIBLE,
* visible: boolean
2018-02-02 14:50:16 +00:00
* }}
*/
export function setSideBarVisible(visible: boolean) {
2018-02-02 14:50:16 +00:00
return {
type: SET_SIDEBAR_VISIBLE,
visible
2018-02-02 14:50:16 +00:00
};
}