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

@ -1,8 +1,19 @@
import * as React from 'react';
import { TestGrid } from '~/components/flow/TestGrid';
import * as styles from './styles.scss';
import { Header } from '~/components/main/Header';
import React, { FC } from 'react';
import { connect } from 'react-redux';
import { FlowGrid } from '~/components/flow/FlowGrid';
import { selectFlow } from '~/redux/flow/selectors';
export const FlowLayout = () => (
<TestGrid />
);
const mapStateToProps = selectFlow;
const mapDispatchToProps = {};
type IProps = ReturnType<typeof mapStateToProps> & typeof mapDispatchToProps & {};
const FlowLayoutUnconnected: FC<IProps> = ({ nodes }) => <FlowGrid nodes={nodes} />;
const FlowLayout = connect(
mapStateToProps,
mapDispatchToProps
)(FlowLayoutUnconnected);
export { FlowLayout, FlowLayoutUnconnected };