mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fix navigation from tag sidebar
This commit is contained in:
parent
5fe6d8b869
commit
afc04abfd4
2 changed files with 5 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
import React, { FC, MouseEventHandler } from 'react';
|
||||
import React, { FC } from 'react';
|
||||
|
||||
import { FlowRecentItem } from '~/components/flow/FlowRecentItem';
|
||||
import { INode } from '~/types';
|
||||
|
@ -7,13 +7,12 @@ import styles from './styles.module.scss';
|
|||
|
||||
interface IProps {
|
||||
nodes: INode[];
|
||||
onClick?: MouseEventHandler;
|
||||
}
|
||||
|
||||
const TagSidebarList: FC<IProps> = ({ nodes, onClick }) => (
|
||||
const TagSidebarList: FC<IProps> = ({ nodes }) => (
|
||||
<div className={styles.list}>
|
||||
{nodes.map(node => (
|
||||
<FlowRecentItem node={node} key={node.id} onClick={onClick} />
|
||||
{nodes.map((node) => (
|
||||
<FlowRecentItem node={node} key={node.id} />
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue