From c67c18b49445e84956e0d2a19b0a6c9f98f7b890 Mon Sep 17 00:00:00 2001 From: Stacey McKnight Date: Thu, 19 Aug 2021 12:24:57 -0500 Subject: [PATCH 1/7] add constants to manage brigade references used in app --- client/src/utils/themes/themes.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 client/src/utils/themes/themes.js diff --git a/client/src/utils/themes/themes.js b/client/src/utils/themes/themes.js new file mode 100644 index 000000000..92f245eb2 --- /dev/null +++ b/client/src/utils/themes/themes.js @@ -0,0 +1,7 @@ +// Brigade Details +export const BRIGADE_NAME = "Open STL"; +export const BRIGADE_EMAIL = "info@openstl.org"; +export const BRIGADE_SITE_URL = "https://openstl.org/"; +export const BRIGADE_SITE_NAME = "openstl.org"; +export const BRIGADE_VRMS_REPO = "https://github.com/OpenSTL/VRMS"; +export const BRIGADE_SLACK = "https://openstl.slack.com"; \ No newline at end of file From 4dcd0bc6ee95bbf5e8f6e03cbd04a8f8ff862a7d Mon Sep 17 00:00:00 2001 From: Stacey McKnight Date: Thu, 19 Aug 2021 12:26:33 -0500 Subject: [PATCH 2/7] only display 'VRMS developed by' footer if brigade is Hack for LA --- client/src/components/common/footer/footer.js | 2 ++ client/src/components/common/footer/footer.test.js | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/client/src/components/common/footer/footer.js b/client/src/components/common/footer/footer.js index a9d5f05d7..97ebefd29 100644 --- a/client/src/components/common/footer/footer.js +++ b/client/src/components/common/footer/footer.js @@ -1,6 +1,7 @@ import React from 'react'; import './footer.scss'; import RedirectLink from '../link/link'; +import { BRIGADE_NAME } from '../../../utils/themes/themes'; import { useSelector } from 'react-redux'; const Footer = () => { @@ -12,6 +13,7 @@ const Footer = () => {
Logged in as {user.email}
) : ( + BRIGADE_NAME === "Hack for LA" &&