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

chore(console): add appInsights for custom domain page (#4014)

This commit is contained in:
Xiao Yijun 2023-06-11 12:50:15 +08:00 committed by GitHub
parent 690cd37e71
commit 4d10d3d582
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,11 @@
import { withAppInsights } from '@logto/app-insights/react';
import { type Domain } from '@logto/schemas';
import { conditional } from '@silverhand/essentials';
import useSWR from 'swr';
import FormCard from '@/components/FormCard';
import FormField from '@/components/FormField';
import PageMeta from '@/components/PageMeta';
import { customDomainSyncInterval } from '@/consts/custom-domain';
import useApi, { type RequestError } from '@/hooks/use-api';
import useSwrFetcher from '@/hooks/use-swr-fetcher';
@ -32,6 +34,7 @@ function TenantDomainSettings() {
return (
<div className={styles.container}>
<PageMeta titleKey={['tenant_settings.title', 'tenant_settings.tabs.domains']} />
<FormCard
title="domain.custom.custom_domain"
description="domain.custom.custom_domain_description"
@ -65,4 +68,4 @@ function TenantDomainSettings() {
);
}
export default TenantDomainSettings;
export default withAppInsights(TenantDomainSettings);