Skip to content

Commit

Permalink
feat(layout): add version button to footer (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekusu authored Jan 20, 2023
1 parent 938e925 commit 3f621d9
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions components/layout/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
'use client';

import { Button, Flex, Transition } from 'components/core';
import { RiGithubLine } from 'react-icons/ri';
import { Button, Flex, Tooltip, Transition } from 'components/core';
import project from 'package.json';
import { RiGitBranchLine, RiGithubLine } from 'react-icons/ri';

export default function Footer() {
return (
Expand All @@ -19,6 +20,19 @@ export default function Footer() {
nekusu
</Button>
</Flex>
<Flex className='gap-1'>
<Tooltip label='See changelog' offset={10}>
<Button
className='p-0 text-sm'
component='a'
href={`https://github.com/nekusu/apetype/releases/tag/v${project.version}`}
target='_blank'
rel='noopener noreferrer'
>
<RiGitBranchLine />v{project.version}
</Button>
</Tooltip>
</Flex>
</Flex>
</Transition>
);
Expand Down

0 comments on commit 3f621d9

Please sign in to comment.