From 3a988afff5a17697bfd498161a7a6ab14eb09238 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Mon, 18 Nov 2024 14:25:03 -0800 Subject: [PATCH] Added Zendesk integration --- .env.example | 2 + app/layout.tsx | 2 + package.json | 49 +- src/components/elements/zendesk.tsx | 9 + yarn.lock | 1249 ++++++++++++++------------- 5 files changed, 665 insertions(+), 646 deletions(-) create mode 100644 src/components/elements/zendesk.tsx diff --git a/.env.example b/.env.example index e638c489..e782384f 100644 --- a/.env.example +++ b/.env.example @@ -26,5 +26,7 @@ BUILD_PAGES=0 #ALGOLIA_KEY= #ALGOLIA_RECOMMENDATIONS=true +# Zendesk +#NEXT_PUBLIC_ZENDESK=1245 # Google tag manager. #NEXT_PUBLIC_GTM=GTM-1234 \ No newline at end of file diff --git a/app/layout.tsx b/app/layout.tsx index 34c194d4..ca031b35 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -10,6 +10,7 @@ import clsx from "clsx" import Editori11y from "@components/tools/editorially" import localFont from "next/font/local" import Cookiebot from "@components/elements/cookiebot" +import Zendesk from "@components/elements/zendesk" const appleIcons: Icon[] = [60, 72, 76, 114, 120, 144, 152, 180].map(size => ({ url: `https://www-media.stanford.edu/assets/favicon/apple-touch-icon-${size}x${size}.png`, @@ -53,6 +54,7 @@ const RootLayout = ({children, modal}: {children: React.ReactNode; modal: React. + {isDevMode && }