From 60f725cbf3378c0e3ecf3ff93672b73a00b1a4dc Mon Sep 17 00:00:00 2001 From: Kris Charbonneau <71025360+krischarbonneau@users.noreply.github.com> Date: Mon, 15 Jul 2024 10:41:14 -0400 Subject: [PATCH 1/9] Update footer ternary to use publicRuntimeConfig value (#705) --- components/Layout.js | 66 ++++++--------- package-lock.json | 195 ++++++++++++++++++++++++++++++++++++++++++- package.json | 1 + 3 files changed, 219 insertions(+), 43 deletions(-) diff --git a/components/Layout.js b/components/Layout.js index c31dbef64..884528104 100644 --- a/components/Layout.js +++ b/components/Layout.js @@ -10,6 +10,7 @@ import { useRouter } from 'next/router' import throttle from 'lodash.throttle' import IdleTimeout from './IdleTimeout' import { signOut } from 'next-auth/react' +import getConfig from 'next/config' export default function Layout(props) { const t = props.locale === 'en' ? en : fr @@ -144,48 +145,31 @@ export default function Layout(props) {
{props.children}
- - - {process.env.ENVIRONMENT === 'production' ? ( -