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

added recent to reducer

This commit is contained in:
Fedor Katurov 2019-10-28 18:26:12 +07:00
parent 920a8adaa2
commit 746d10ce8b
8 changed files with 38 additions and 9 deletions

View file

@ -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

View file

@ -0,0 +1,8 @@
import React, { FC } from 'react';
import * as styles from './styles.scss';
interface IProps {}
const FlowRecent: FC<IProps> = ({}) => <div className={styles.grid} />;
export { FlowRecent };

View file

@ -0,0 +1,3 @@
.grid {
display: grid;
}