Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
bodobraegger committed Sep 5, 2023
1 parent 7bddb3e commit 80ab5a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 2 additions & 1 deletion src/components/SidebarNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -62,7 +63,7 @@ function SidebarNav(props: Props) {
>
<NavList.LeadingVisual>
{/* <DynamicIcon/> */}
<img src={chapter_logo_test} style={{width: '18px'}}/>
<img src={chapter_logo_test} alt='chapter_logo_test' style={{width: '18px'}}/>
</NavList.LeadingVisual>
{ chapterNavItems.length > 0
? <Link as={ReactRouterLink} to={section.slug} sx={{color: 'unset'}}>
Expand Down

0 comments on commit 80ab5a0

Please sign in to comment.