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:
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
|
||||
|
|
8
src/components/flow/FlowRecent/index.tsx
Normal file
8
src/components/flow/FlowRecent/index.tsx
Normal 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 };
|
3
src/components/flow/FlowRecent/styles.scss
Normal file
3
src/components/flow/FlowRecent/styles.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
.grid {
|
||||
display: grid;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue