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

fixed node loading

This commit is contained in:
Fedor Katurov 2019-11-07 14:13:46 +07:00
parent cf16cbf0f9
commit d06593b4cb
3 changed files with 32 additions and 7 deletions

View file

@ -13,7 +13,7 @@ const mapStateToProps = state => ({
});
const mapDispatchToProps = {
nodeLoadNode: NODE_ACTIONS.nodeLoadNode,
nodeGotoNode: NODE_ACTIONS.nodeGotoNode,
flowSetCellView: FLOW_ACTIONS.flowSetCellView,
};
@ -22,7 +22,7 @@ type IProps = ReturnType<typeof mapStateToProps> & typeof mapDispatchToProps & {
const FlowLayoutUnconnected: FC<IProps> = ({
flow: { nodes, heroes, recent, updated },
user,
nodeLoadNode,
nodeGotoNode,
flowSetCellView,
}) => (
<FlowGrid
@ -30,7 +30,7 @@ const FlowLayoutUnconnected: FC<IProps> = ({
heroes={heroes}
recent={recent}
updated={updated}
onSelect={nodeLoadNode}
onSelect={nodeGotoNode}
user={user}
onChangeCellView={flowSetCellView}
/>