feat: update connector page

This commit is contained in:
Maël Gangloff
2024-07-30 00:55:36 +02:00
parent 3a9f22318f
commit 469537d275
11 changed files with 205 additions and 32 deletions

View File

@@ -2,6 +2,7 @@ import React, {useEffect, useState} from "react";
import {Collapse, Divider, Table, Typography} from "antd";
import {getTldList, Tld} from "../../utils/api";
import {t} from 'ttag'
import {regionNames} from "../../i18n";
const {Text, Paragraph} = Typography
@@ -23,10 +24,6 @@ const getCountryCode = (tld: string): string => {
return tld
}
const locale = navigator.language.split('-')[0]
const regionNames = new Intl.DisplayNames([locale], {type: 'region'})
function TldTable(filters: FiltersType) {
const [dataTable, setDataTable] = useState<Tld[]>([])
const [total, setTotal] = useState(0)