From 9ddf0d75787a35886f78a19d1afab9ffd93f958f Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Tue, 16 May 2023 11:08:04 +0800 Subject: [PATCH] chore(console): add app insights for webhook pages (#3845) --- packages/console/src/pages/WebhookDetails/index.tsx | 3 ++- packages/console/src/pages/Webhooks/index.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/console/src/pages/WebhookDetails/index.tsx b/packages/console/src/pages/WebhookDetails/index.tsx index 0228e3edc..6acb6af0b 100644 --- a/packages/console/src/pages/WebhookDetails/index.tsx +++ b/packages/console/src/pages/WebhookDetails/index.tsx @@ -1,3 +1,4 @@ +import { withAppInsights } from '@logto/app-insights/react'; import { type Hook } from '@logto/schemas'; import { useEffect, useState } from 'react'; import { toast } from 'react-hot-toast'; @@ -195,4 +196,4 @@ function WebhookDetails() { ); } -export default WebhookDetails; +export default withAppInsights(WebhookDetails); diff --git a/packages/console/src/pages/Webhooks/index.tsx b/packages/console/src/pages/Webhooks/index.tsx index c02f73e74..e926eca9f 100644 --- a/packages/console/src/pages/Webhooks/index.tsx +++ b/packages/console/src/pages/Webhooks/index.tsx @@ -1,3 +1,4 @@ +import { withAppInsights } from '@logto/app-insights/react'; import { type HookEvent, type Hook, Theme } from '@logto/schemas'; import { conditional } from '@silverhand/essentials'; import { toast } from 'react-hot-toast'; @@ -141,4 +142,4 @@ function Webhooks() { ); } -export default Webhooks; +export default withAppInsights(Webhooks);