From 7ef40c30e3ec89ac243a714fcdc70d9fb7b5d0fe Mon Sep 17 00:00:00 2001 From: Sudha Eswaran Date: Thu, 11 Jul 2024 14:12:06 -0700 Subject: [PATCH] App title updated accordingly --- src/components/root_layout.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/root_layout.tsx b/src/components/root_layout.tsx index d86e82ea..befe787d 100644 --- a/src/components/root_layout.tsx +++ b/src/components/root_layout.tsx @@ -57,6 +57,17 @@ const RootLayout: FC = ({ children }) => { } }, [location.pathname]) + /** + * When deploying the application to AWS S3, the environment variable 'REACT_APP_ENV' + * is set to 'quality-install-tool' or 'ira-quality-install-tool' for the respective applications. + * + * The title of the application is set accordingly + */ + const app_title = + process.env.REACT_APP_ENV === 'quality-install-tool' + ? 'Quality Install Tool' + : 'IRA - Quality Install Tool' + return (
@@ -72,7 +83,7 @@ const RootLayout: FC = ({ children }) => { )} - Quality Install Tool + {app_title}