mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
grid recent card initial
This commit is contained in:
parent
746d10ce8b
commit
6f76bec2c0
5 changed files with 65 additions and 8 deletions
|
@ -8,7 +8,7 @@ import pick from 'ramda/es/pick';
|
|||
import { selectUser } from '~/redux/auth/selectors';
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
flow: pick(['nodes', 'heroes'], selectFlow(state)),
|
||||
flow: pick(['nodes', 'heroes', 'recent'], selectFlow(state)),
|
||||
user: pick(['role', 'id'], selectUser(state)),
|
||||
});
|
||||
|
||||
|
@ -20,7 +20,7 @@ const mapDispatchToProps = {
|
|||
type IProps = ReturnType<typeof mapStateToProps> & typeof mapDispatchToProps & {};
|
||||
|
||||
const FlowLayoutUnconnected: FC<IProps> = ({
|
||||
flow: { nodes, heroes },
|
||||
flow: { nodes, heroes, recent },
|
||||
user,
|
||||
nodeLoadNode,
|
||||
flowSetCellView,
|
||||
|
@ -28,6 +28,7 @@ const FlowLayoutUnconnected: FC<IProps> = ({
|
|||
<FlowGrid
|
||||
nodes={nodes}
|
||||
heroes={heroes}
|
||||
recent={recent}
|
||||
onSelect={nodeLoadNode}
|
||||
user={user}
|
||||
onChangeCellView={flowSetCellView}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue