From e5074b408451cc5afe08bdb053f95afaeb5ef578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?--=3DFurtiF=E2=84=A2=3D--?= Date: Fri, 15 Nov 2024 10:43:30 +0100 Subject: [PATCH] feat(client): add current version to header * add version information * Update package.json Co-authored-by: Fabio1988 <35898099+Fabio1988@users.noreply.github.com> --------- Co-authored-by: Fabio1988 <35898099+Fabio1988@users.noreply.github.com> --- packages/client/src/app/layout.tsx | 3 ++- packages/client/tsconfig.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/client/src/app/layout.tsx b/packages/client/src/app/layout.tsx index 878f688..f4c25d9 100644 --- a/packages/client/src/app/layout.tsx +++ b/packages/client/src/app/layout.tsx @@ -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', @@ -34,7 +35,7 @@ export const Layout: FC<{ children?: ReactNode }> = ({ children }) => { - Rotom + Rotom v{version} diff --git a/packages/client/tsconfig.json b/packages/client/tsconfig.json index a6adc91..aa341e6 100644 --- a/packages/client/tsconfig.json +++ b/packages/client/tsconfig.json @@ -10,7 +10,8 @@ "noImplicitOverride": true, "noPropertyAccessFromIndexSignature": true, "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true + "noFallthroughCasesInSwitch": true, + "resolveJsonModule": true }, "files": [], "include": [],