1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

storing flow cell view

This commit is contained in:
Fedor Katurov 2019-10-23 15:36:25 +07:00
parent 7254a448c1
commit 1d40eca79e
6 changed files with 26 additions and 7 deletions

View file

@ -39,22 +39,22 @@ const Cell: FC<IProps> = ({
}, [id, flow, onChangeCellView]);
const setViewSingle = useCallback(() => {
const show_description = flow && !!flow.show_description;
const show_description = (flow && !!flow.show_description) || false;
onChangeCellView(id, { show_description, display: 'single' });
}, [id, flow, onChangeCellView]);
const setViewHorizontal = useCallback(() => {
const show_description = flow && !!flow.show_description;
const show_description = (flow && !!flow.show_description) || false;
onChangeCellView(id, { show_description, display: 'horizontal' });
}, [id, flow, onChangeCellView]);
const setViewVertical = useCallback(() => {
const show_description = flow && !!flow.show_description;
const show_description = (flow && !!flow.show_description) || false;
onChangeCellView(id, { show_description, display: 'vertical' });
}, [id, flow, onChangeCellView]);
const setViewQuadro = useCallback(() => {
const show_description = flow && !!flow.show_description;
const show_description = (flow && !!flow.show_description) || false;
onChangeCellView(id, { show_description, display: 'quadro' });
}, [id, flow, onChangeCellView]);