From afc04abfd45661c2af9934b1a36fb6a1a7dbe54f Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Mon, 13 Nov 2023 22:00:11 +0600 Subject: [PATCH] fix navigation from tag sidebar --- src/components/sidebar/TagSidebarList/index.tsx | 9 ++++----- src/containers/sidebars/TagSidebar/index.tsx | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) 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} > - + )}