From 36af17618fc1dc590c2461e9fbaf0e30f8101ddc Mon Sep 17 00:00:00 2001 From: Adrien Leravat Date: Mon, 17 Jun 2024 22:14:20 -0700 Subject: [PATCH] Move hosts, keys and ids 'constants.ts' --- src/app/layout.tsx | 11 +++++++++-- src/app/submit-project/SubmitProjectForm.tsx | 4 ++-- src/components/GaPageEvent.tsx | 4 +++- src/constants/constants.ts | 4 ++++ src/utils/getHost.ts | 9 +++++---- 5 files changed, 23 insertions(+), 9 deletions(-) create mode 100644 src/constants/constants.ts diff --git a/src/app/layout.tsx b/src/app/layout.tsx index d3078ea..b72682f 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -9,6 +9,8 @@ import CssBaseline from '@mui/material/CssBaseline'; import Container from '@mui/material/Container'; import { lightTheme } from '@/theme'; import PatchCssStyle from '@/PatchCssStyle'; + +import { GOOGLE_TAG_ID } from '@/constants/constants'; import Header from '@/components/Header'; import Footer from '@/components/Footer'; @@ -53,7 +55,10 @@ export default function RootLayout({ children }: { children: React.ReactNode }) return ( -