mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
added recent to reducer
This commit is contained in:
parent
920a8adaa2
commit
746d10ce8b
8 changed files with 38 additions and 9 deletions
|
@ -8,6 +8,7 @@ import { canEditNode } from '~/utils/node';
|
|||
import { IUser } from '~/redux/auth/types';
|
||||
import { flowSetCellView } from '~/redux/flow/actions';
|
||||
import { FlowHero } from '../FlowHero';
|
||||
import { FlowRecent } from '../FlowRecent';
|
||||
|
||||
type IProps = Partial<IFlowState> & {
|
||||
user: Partial<IUser>;
|
||||
|
@ -15,13 +16,15 @@ type IProps = Partial<IFlowState> & {
|
|||
onChangeCellView: typeof flowSetCellView;
|
||||
};
|
||||
|
||||
export const FlowGrid: FC<IProps> = ({ user, nodes, heroes, onSelect, onChangeCellView }) => (
|
||||
export const FlowGrid: FC<IProps> = ({ user, nodes, heroes, recent, onSelect, onChangeCellView }) => (
|
||||
<div>
|
||||
<div className={styles.grid_test}>
|
||||
<div className={styles.hero}>
|
||||
<FlowHero heroes={heroes} />
|
||||
</div>
|
||||
<div className={styles.stamp}>STAMP</div>
|
||||
<div className={styles.stamp}>
|
||||
<FlowRecent />
|
||||
</div>
|
||||
|
||||
{nodes.map(node => (
|
||||
<Cell
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue