Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
molvqingtai committed Oct 2, 2024
2 parents 3a0a208 + 4551ad2 commit 0ac691a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/options/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import Main from './components/Main'
import ProfileForm from './components/ProfileForm'
import BadgeList from './components/BadgeList'
import Layout from './components/Layout'
import VersionLink from './components/VersionLink'

function App() {
return (
<Layout>
<VersionLink></VersionLink>
<Main>
<ProfileForm></ProfileForm>
<Toaster richColors position="top-center" />
Expand Down
20 changes: 20 additions & 0 deletions src/app/options/components/VersionLink.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { FC } from 'react'
import { Button } from '@/components/ui/Button'
import Link from '@/components/Link'
import { version } from '@/../package.json'

const VersionLink: FC = () => {
return (
<Button
size="lg"
variant="ghost"
className="fixed right-4 top-2 rounded-full px-3 text-base font-medium text-primary"
>
<Link href="https://github.com/molvqingtai/WebChat/releases">Version: v{version}</Link>
</Button>
)
}

VersionLink.displayName = 'VersionLink'

export default VersionLink

0 comments on commit 0ac691a

Please sign in to comment.