Skip to content

Commit

Permalink
Add: GitHubアイコンリンクの追加
Browse files Browse the repository at this point in the history
  • Loading branch information
su-u committed Dec 10, 2023
1 parent 6d6b439 commit 57f3dfe
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/components/SideNavBar.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import styled from '@emotion/styled';
import EditIcon from '@rsuite/icons/Edit';
import GrowthIcon from '@rsuite/icons/Growth';
import CogIcon from '@rsuite/icons/legacy/Cog';
import GithubIcon from '@rsuite/icons/legacy/Github';
import ListOl from '@rsuite/icons/legacy/ListOl';
import NextLink from 'next/link';
import React from 'react';
import { Nav, Sidenav, Sidebar } from 'rsuite';
import { Nav, Sidenav, Sidebar, Navbar, Whisper, Tooltip } from 'rsuite';

const GITHUB_LINK = 'https://github.com/su-u/devtools';

type NavItemType = {
key: string;
Expand Down Expand Up @@ -153,7 +157,21 @@ export const SideNavBar: React.FC = () => {
})}
</Nav>
</Sidenav.Body>
<Sidenav.Toggle onToggle={(expanded) => setExpanded(expanded)} />
<Navbar appearance="subtle">
<Nav>
<Nav.Item as={NavLink} href={GITHUB_LINK} target="_blank">
<Whisper
placement="right"
controlId="control-id-sidenav-github"
trigger="hover"
speaker={<Tooltip>GitHub</Tooltip>}
>
<GithubIcon style={{ fontSize: 24 }} />
</Whisper>
</Nav.Item>
</Nav>
<Sidenav.Toggle onToggle={(expanded) => setExpanded(expanded)} />
</Navbar>
</Sidenav>
</StyledSidebar>
);
Expand Down

1 comment on commit 57f3dfe

@vercel
Copy link

@vercel vercel bot commented on 57f3dfe Dec 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tools-su-u-dev – ./

tools-su-u-dev.vercel.app
tools-su-u-dev-su-u.vercel.app
tools.su-u.dev
tools-su-u-dev-git-main-su-u.vercel.app

Please sign in to comment.