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

hero slider

This commit is contained in:
Fedor Katurov 2019-10-24 15:44:40 +07:00
parent a9da7e8cef
commit 5cd5941be0
12 changed files with 266 additions and 14 deletions

View file

@ -8,7 +8,7 @@ import pick from 'ramda/es/pick';
import { selectUser } from '~/redux/auth/selectors';
const mapStateToProps = state => ({
flow: pick(['nodes'], selectFlow(state)),
flow: pick(['nodes', 'heroes'], selectFlow(state)),
user: pick(['role', 'id'], selectUser(state)),
});
@ -20,12 +20,18 @@ const mapDispatchToProps = {
type IProps = ReturnType<typeof mapStateToProps> & typeof mapDispatchToProps & {};
const FlowLayoutUnconnected: FC<IProps> = ({
flow: { nodes },
flow: { nodes, heroes },
user,
nodeLoadNode,
flowSetCellView,
}) => (
<FlowGrid nodes={nodes} onSelect={nodeLoadNode} user={user} onChangeCellView={flowSetCellView} />
<FlowGrid
nodes={nodes}
heroes={heroes}
onSelect={nodeLoadNode}
user={user}
onChangeCellView={flowSetCellView}
/>
);
const FlowLayout = connect(