Skip to content

Commit

Permalink
Add version to nav link
Browse files Browse the repository at this point in the history
  • Loading branch information
johno committed May 3, 2022
1 parent 7c0377e commit f3d9527
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/docs/components/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HTMLAttributes, useId } from 'react'
import Link from 'next/link'
import { Logo } from '@compai/logo'
import pkg from '../../../packages/gui/package.json'

interface Props extends HTMLAttributes<HTMLDivElement> {}
export const Layout = (props: Props) => {
Expand Down Expand Up @@ -34,7 +35,12 @@ export const Layout = (props: Props) => {
<span sx={{ mr: 4 }}>
<Logo height={20} width={20} seed={id} />
</span>
<span>CSS GUI</span>
<span>
CSS GUI
<span sx={{ fontSize: 0, color: 'muted', ml: 1 }}>
v{pkg.version}
</span>
</span>
</a>
</Link>
</header>
Expand Down

1 comment on commit f3d9527

@vercel
Copy link

@vercel vercel bot commented on f3d9527 May 3, 2022

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:

css-gui – ./

css-gui-git-main-components-ai.vercel.app
css-gui.vercel.app
css-gui-components-ai.vercel.app

Please sign in to comment.