0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore(console): add app insights for webhook pages (#3845)

This commit is contained in:
Xiao Yijun 2023-05-16 11:08:04 +08:00 committed by GitHub
parent baa16b0bb7
commit 9ddf0d7578
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,4 @@
import { withAppInsights } from '@logto/app-insights/react';
import { type Hook } from '@logto/schemas'; import { type Hook } from '@logto/schemas';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import { toast } from 'react-hot-toast'; import { toast } from 'react-hot-toast';
@ -195,4 +196,4 @@ function WebhookDetails() {
); );
} }
export default WebhookDetails; export default withAppInsights(WebhookDetails);

View file

@ -1,3 +1,4 @@
import { withAppInsights } from '@logto/app-insights/react';
import { type HookEvent, type Hook, Theme } from '@logto/schemas'; import { type HookEvent, type Hook, Theme } from '@logto/schemas';
import { conditional } from '@silverhand/essentials'; import { conditional } from '@silverhand/essentials';
import { toast } from 'react-hot-toast'; import { toast } from 'react-hot-toast';
@ -141,4 +142,4 @@ function Webhooks() {
); );
} }
export default Webhooks; export default withAppInsights(Webhooks);