chore: adds Intercom admin link (#14146)
This commit is contained in:
1 parent
c50e04e18b
commit
0e8fa22b09
1 file changed
+2
-1
@@ -4,7 +4,7 @@ import { useIntercom as useIntercomLib } from "react-use-intercom";
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import dayjs from "@calcom/dayjs";
|
import dayjs from "@calcom/dayjs";
|
||||||
import { WEBSITE_URL } from "@calcom/lib/constants";
|
import { WEBAPP_URL, WEBSITE_URL } from "@calcom/lib/constants";
|
||||||
import { useHasTeamPlan, useHasPaidPlan } from "@calcom/lib/hooks/useHasPaidPlan";
|
import { useHasTeamPlan, useHasPaidPlan } from "@calcom/lib/hooks/useHasPaidPlan";
|
||||||
import { trpc } from "@calcom/trpc/react";
|
import { trpc } from "@calcom/trpc/react";
|
||||||
|
|
||||||
@@ -45,6 +45,7 @@ export const useIntercom = () => {
|
|||||||
//keys should be snake cased
|
//keys should be snake cased
|
||||||
user_name: data?.username,
|
user_name: data?.username,
|
||||||
link: `${WEBSITE_URL}/${data?.username}`,
|
link: `${WEBSITE_URL}/${data?.username}`,
|
||||||
|
admin_link: `${WEBAPP_URL}/settings/admin/users/${data?.id}/edit`,
|
||||||
identity_provider: data?.identityProvider,
|
identity_provider: data?.identityProvider,
|
||||||
timezone: data?.timeZone,
|
timezone: data?.timeZone,
|
||||||
locale: data?.locale,
|
locale: data?.locale,
|
||||||
|
|||||||
Reference in new issue
Block a user