From 84d5bad402d19897dff908c8fe2b7e030e73a05e Mon Sep 17 00:00:00 2001 From: Dmitri Nasonov Date: Wed, 11 Dec 2024 01:06:42 +0000 Subject: [PATCH] A: attempted Fix for version display --- index.html | 15 --------------- src/App.tsx | 2 ++ src/components/Footer/VersionInfo.tsx | 11 +++++++++++ 3 files changed, 13 insertions(+), 15 deletions(-) create mode 100644 src/components/Footer/VersionInfo.tsx diff --git a/index.html b/index.html index 347ba9149..a698b3675 100644 --- a/index.html +++ b/index.html @@ -23,21 +23,6 @@
-
- diff --git a/src/App.tsx b/src/App.tsx index fe16431e0..8c82d0899 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -12,6 +12,7 @@ import ApiPopup from '@components/ApiPopup'; import Toast from '@components/Toast'; import { ToastContainer } from 'react-toastify'; import 'react-toastify/dist/ReactToastify.css'; +import VersionInfo from '@components/Footer/VersionInfo'; function App() { const initialiseNewChat = useInitialiseNewChat(); @@ -84,6 +85,7 @@ function App() { + ); diff --git a/src/components/Footer/VersionInfo.tsx b/src/components/Footer/VersionInfo.tsx new file mode 100644 index 000000000..78341e436 --- /dev/null +++ b/src/components/Footer/VersionInfo.tsx @@ -0,0 +1,11 @@ +import { version } from '../../../package.json'; + +const VersionInfo = () => { + return ( +
+ Version: {version} +
+ ); +}; + +export default VersionInfo;