add zendesk (#2156)
* MVP zendesk provider * hide zendesk on mobile * hide zendesk chat bubble on mobile too * made mobile selector more robust * made user menu full width * removed zendesk react and instead use Nextjs Script * updated NEXT_PUBLIC_ZENDESK_KEY env in example
This commit is contained in:
1 parent
04cd821a57
commit
9831845d27
11 files changed
+1145
-107
No files matched your search
@@ -19,7 +19,8 @@ import { Toaster } from "react-hot-toast";
|
||||
|
||||
import LicenseBanner from "@ee/components/LicenseBanner";
|
||||
import TrialBanner from "@ee/components/TrialBanner";
|
||||
import HelpMenuItemDynamic from "@ee/lib/intercom/HelpMenuItemDynamic";
|
||||
import IntercomMenuItem from "@ee/lib/intercom/IntercomMenuItem";
|
||||
import ZendeskMenuItem from "@ee/lib/zendesk/ZendeskMenuItem";
|
||||
|
||||
import classNames from "@lib/classNames";
|
||||
import { NEXT_PUBLIC_BASE_URL } from "@lib/config/constants";
|
||||
@@ -459,7 +460,7 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||
viewBox="0 0 2447.6 2452.5"
|
||||
className={classNames(
|
||||
"text-gray-500 group-hover:text-gray-700",
|
||||
"mt-0.5 h-4 w-4 flex-shrink-0 ltr:mr-2 rtl:ml-2"
|
||||
"mt-0.5 h-4 w-4 flex-shrink-0 ltr:mr-4 rtl:ml-4"
|
||||
)}
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<g clipRule="evenodd" fillRule="evenodd">
|
||||
@@ -489,7 +490,8 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||
<MapIcon className="h-5 w-5 text-gray-500 ltr:mr-3 rtl:ml-3" /> {t("visit_roadmap")}
|
||||
</a>
|
||||
</DropdownMenuItem>
|
||||
<HelpMenuItemDynamic />
|
||||
<IntercomMenuItem />
|
||||
<ZendeskMenuItem />
|
||||
<DropdownMenuSeparator className="h-px bg-gray-200" />
|
||||
<DropdownMenuItem>
|
||||
<a
|
||||
|
||||
Reference in new issue
Block a user