diff --git a/src/components/sidebar/TagSidebarList/index.tsx b/src/components/sidebar/TagSidebarList/index.tsx index e66b36ef..c8025e5c 100644 --- a/src/components/sidebar/TagSidebarList/index.tsx +++ b/src/components/sidebar/TagSidebarList/index.tsx @@ -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 = ({ nodes, onClick }) => ( +const TagSidebarList: FC = ({ nodes }) => (
- {nodes.map(node => ( - + {nodes.map((node) => ( + ))}
); diff --git a/src/containers/sidebars/TagSidebar/index.tsx b/src/containers/sidebars/TagSidebar/index.tsx index ebfed8d2..416b4ec8 100644 --- a/src/containers/sidebars/TagSidebar/index.tsx +++ b/src/containers/sidebars/TagSidebar/index.tsx @@ -47,7 +47,7 @@ const TagSidebar: VFC = ({ tag, onRequestClose }) => { loadMore={loadMore} className={styles.list} > - + )}