mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-26 13:26:40 +07:00
grid recent card initial
This commit is contained in:
parent
746d10ce8b
commit
6f76bec2c0
5 changed files with 65 additions and 8 deletions
|
@ -1,8 +1,21 @@
|
|||
import React, { FC } from 'react';
|
||||
import * as styles from './styles.scss';
|
||||
import { IFlowState } from '~/redux/flow/reducer';
|
||||
|
||||
interface IProps {}
|
||||
interface IProps {
|
||||
recent: IFlowState['recent'];
|
||||
}
|
||||
|
||||
const FlowRecent: FC<IProps> = ({}) => <div className={styles.grid} />;
|
||||
const FlowRecent: FC<IProps> = ({ recent }) => (
|
||||
<div className={styles.grid}>
|
||||
{recent &&
|
||||
recent.slice(0, 9).map(node => (
|
||||
<div key={node.id} className={styles.item}>
|
||||
<div className={styles.thumb} />
|
||||
<div className={styles.info}>{node.title}</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
|
||||
export { FlowRecent };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue