1
0
Fork 0
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:
Fedor Katurov 2023-11-13 22:00:11 +06:00
parent 5fe6d8b869
commit afc04abfd4
2 changed files with 5 additions and 6 deletions

View file

@ -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>
);