mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
added flow menus
This commit is contained in:
parent
65d13afab9
commit
c8204a41a2
13 changed files with 358 additions and 53 deletions
|
@ -15,7 +15,7 @@ import { FlowStamp } from '~/components/flow/FlowStamp';
|
|||
import { Container } from '~/containers/main/Container';
|
||||
import { SidebarRouter } from '~/containers/main/SidebarRouter';
|
||||
import { useShallowSelect } from '~/utils/hooks/useShallowSelect';
|
||||
import { INode } from '~/redux/types';
|
||||
import { FlowDisplay, INode } from '~/redux/types';
|
||||
import { selectLabUpdatesNodes } from '~/redux/lab/selectors';
|
||||
import { usePersistedState } from '~/utils/hooks/usePersistedState';
|
||||
import classNames from 'classnames';
|
||||
|
@ -44,18 +44,16 @@ const FlowLayout: FC = () => {
|
|||
[dispatch]
|
||||
);
|
||||
|
||||
const onChangeCellView = useCallback(
|
||||
(id: INode['id'], flow: INode['flow']) => {
|
||||
dispatch(flowSetCellView(id, flow));
|
||||
},
|
||||
[dispatch]
|
||||
);
|
||||
|
||||
const cumulativeUpdates = useMemo(() => [...updated, ...labUpdates].slice(0, 10), [
|
||||
updated,
|
||||
labUpdates,
|
||||
]);
|
||||
|
||||
const onChangeCellView = useCallback(
|
||||
(id: INode['id'], val: FlowDisplay) => dispatch(flowSetCellView(id, val)),
|
||||
[]
|
||||
);
|
||||
|
||||
return (
|
||||
<div className={classNames(styles.container, { [styles.fluid]: isFluid })}>
|
||||
<div className={styles.grid}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue