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

Flow cell

This commit is contained in:
muerwre 2019-08-25 13:27:48 +07:00
parent 209ab25ab0
commit 603e78b5ba
7 changed files with 130 additions and 72 deletions

View file

@ -0,0 +1,31 @@
import React, { FC } from 'react';
import { Cell } from '~/components/flow/Cell';
import * as styles from './styles.scss';
import { IFlowState } from '~/redux/flow/reducer';
type IProps = Partial<IFlowState> & {};
export const FlowGrid: FC<IProps> = ({ nodes }) => (
<div>
<div className={styles.grid_test}>
<div className={styles.hero}>HERO</div>
<div className={styles.stamp}>STAMP</div>
{nodes.map(node => (
<Cell key={node.id} node={node} />
))}
</div>
</div>
);
// {
// range(1, 20).map(el => (
// <Cell
// width={Math.floor(Math.random() * 2 + 1)}
// height={Math.floor(Math.random() * 2 + 1)}
// title={`Cell ${el}`}
// key={el}
// />
// ));
// }