From 3f590ac9535f17e1a98d0b333070f07f5547c47d Mon Sep 17 00:00:00 2001 From: alfonso Date: Fri, 4 Aug 2023 16:33:22 -0500 Subject: [PATCH] Added version number that will be showned on login form --- package.json | 2 +- src/Components/Login/login.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5784264..2b2bb25 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "start-dev": "env-cmd -f .env.development react-scripts start", "start-qa": "env-cmd -f .env.qa react-scripts start", "start-prod": "env-cmd -f .env.production react-scripts start", - "build-qa": "env-cmd -f .env.qa react-scripts -version -patch build", + "build-qa": "env-cmd -f .env.qa react-scripts build version --patch", "build-prod": "env-cmd -f .env.production react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" diff --git a/src/Components/Login/login.tsx b/src/Components/Login/login.tsx index 9399962..34a4bca 100644 --- a/src/Components/Login/login.tsx +++ b/src/Components/Login/login.tsx @@ -14,6 +14,7 @@ import { MsgInformativo } from '../Utils/Toast/msgInformativo' import logo from '../../images/GEMCO_mini.png' import Dashboard from '../Dashboard/Dashboard' import { Nav } from 'react-bootstrap' +import Info from '../../../package.json' export const Login: React.FC<{}> = () => { const dispatch = useDispatch() @@ -132,6 +133,7 @@ export const Login: React.FC<{}> = () => { login +
v{Info.version}