mirror of
https://github.com/logto-io/logto.git
synced 2025-03-10 22:22:45 -05:00
chore(console): remove redundant useSWR params from custom domain request (#4025)
This commit is contained in:
parent
89f8476751
commit
2c21832793
1 changed files with 2 additions and 5 deletions
|
@ -7,8 +7,7 @@ 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';
|
||||
import { type RequestError } from '@/hooks/use-api';
|
||||
|
||||
import AddDomainForm from './AddDomainForm';
|
||||
import CustomDomain from './CustomDomain';
|
||||
|
@ -16,9 +15,7 @@ import DefaultDomain from './DefaultDomain';
|
|||
import * as styles from './index.module.scss';
|
||||
|
||||
function TenantDomainSettings() {
|
||||
const api = useApi();
|
||||
const fetcher = useSwrFetcher<Domain[]>(api);
|
||||
const { data, error, mutate } = useSWR<Domain[], RequestError>('api/domains', fetcher, {
|
||||
const { data, error, mutate } = useSWR<Domain[], RequestError>('api/domains', {
|
||||
refreshInterval: customDomainSyncInterval * 1000,
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue