From 80ab5a0bd470914e999ed3df622136b561b7fb13 Mon Sep 17 00:00:00 2001 From: bodie Date: Tue, 5 Sep 2023 02:54:29 +0200 Subject: [PATCH] fix eslint --- src/components/Footer.tsx | 2 +- src/components/SidebarNav.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 59144dd..d7929a8 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,4 +1,4 @@ -import PBSLogo from '../images/pbs_logo.svg'; +// import PBSLogo from '../images/pbs_logo.svg'; import { useNavigate, useLocation } from 'react-router-dom' import type { SectionT } from './Section'; import { Button, ButtonGroup, Truncate } from '@primer/react'; diff --git a/src/components/SidebarNav.tsx b/src/components/SidebarNav.tsx index 4c27988..5db7441 100644 --- a/src/components/SidebarNav.tsx +++ b/src/components/SidebarNav.tsx @@ -29,6 +29,7 @@ function SidebarNav(props: Props) { const icons = [RepoIcon, RepoCloneIcon, RepoPullIcon, RepoPushIcon, RepoLockedIcon, RepoForkedIcon, RepoDeletedIcon, RepoTemplateIcon]; const DynamicIcon = icons[section.sorting % icons.length] + console.log(DynamicIcon) const chapters = section.chapters const chapterNavItems = chapters.sort(function (a: ChapterT, b: ChapterT) { @@ -62,7 +63,7 @@ function SidebarNav(props: Props) { > {/* */} - + chapter_logo_test { chapterNavItems.length > 0 ?