added helpscout (#2204)

* added helpscout

* nit

* moved all help apps into its own component

* added helpscout to .env.example
This commit is contained in:
Peer Richelsen authored and GitHub committed 2022-03-18 15:09:13 +00:00
1 parent 3c845cb226
commit 94f6c80d57
11 files changed
+100 -7

No files matched your search

+6 -1
View File
@@ -3,7 +3,10 @@ import { SessionProvider } from "next-auth/react";
import { appWithTranslation } from "next-i18next";
import type { AppProps as NextAppProps } from "next/app";
import React, { ComponentProps, ReactNode } from "react";
import { LiveChatLoaderProvider } from "react-live-chat-loader";
import { HelpScout } from "react-live-chat-loader";
import DynamicHelpscoutProvider from "@ee/lib/helpscout/providerDynamic";
import DynamicIntercomProvider from "@ee/lib/intercom/providerDynamic";
import usePublicPage from "@lib/hooks/usePublicPage";
@@ -55,7 +58,9 @@ const AppProviders = (props: AppPropsWithChildren) => {
{isPublicPage ? (
RemainingProviders
) : (
<DynamicIntercomProvider>{RemainingProviders}</DynamicIntercomProvider>
<DynamicHelpscoutProvider>
<DynamicIntercomProvider>{RemainingProviders}</DynamicIntercomProvider>
</DynamicHelpscoutProvider>
)}
</IdProvider>
</TelemetryProvider>