Skip to content

Commit

Permalink
feat(client): add current version to header
Browse files Browse the repository at this point in the history
* add version information

* Update package.json

Co-authored-by: Fabio1988 <[email protected]>

---------

Co-authored-by: Fabio1988 <[email protected]>
  • Loading branch information
Furtif and Fabio1988 authored Nov 15, 2024
1 parent 2b9d935 commit e5074b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/client/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Container, Navbar, styled, Text } from '@nextui-org/react';
import { FC, ReactNode, MouseEvent } from 'react';
import { useHref, useLinkClickHandler, useLocation } from 'react-router-dom';
import { version } from '../../../../package.json';

export const Box = styled('div', {
boxSizing: 'border-box',
Expand Down Expand Up @@ -34,7 +35,7 @@ export const Layout: FC<{ children?: ReactNode }> = ({ children }) => {
<Navbar isCompact isBordered>
<Navbar.Brand>
<Text b color="inherit">
Rotom
Rotom v{version}
</Text>
</Navbar.Brand>
<Navbar.Content variant="underline">
Expand Down
3 changes: 2 additions & 1 deletion packages/client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true
},
"files": [],
"include": [],
Expand Down

0 comments on commit e5074b4

Please sign in to comment.