mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: TLD table sizes
This commit is contained in:
@@ -11,6 +11,7 @@ import {getCountryCode} from '../../utils/functions/getCountryCode'
|
|||||||
import {tldToEmoji} from '../../utils/functions/tldToEmoji'
|
import {tldToEmoji} from '../../utils/functions/tldToEmoji'
|
||||||
import {BankOutlined, FlagOutlined, GlobalOutlined, TrademarkOutlined} from "@ant-design/icons"
|
import {BankOutlined, FlagOutlined, GlobalOutlined, TrademarkOutlined} from "@ant-design/icons"
|
||||||
import {Link} from "react-router-dom"
|
import {Link} from "react-router-dom"
|
||||||
|
import useBreakpoint from "../../hooks/useBreakpoint";
|
||||||
|
|
||||||
const {Text, Paragraph} = Typography
|
const {Text, Paragraph} = Typography
|
||||||
|
|
||||||
@@ -30,6 +31,7 @@ function TldTable(filters: FiltersType) {
|
|||||||
Country?: string
|
Country?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const sm = useBreakpoint('sm')
|
||||||
const [dataTable, setDataTable] = useState<TableRow[]>([])
|
const [dataTable, setDataTable] = useState<TableRow[]>([])
|
||||||
const [total, setTotal] = useState(0)
|
const [total, setTotal] = useState(0)
|
||||||
|
|
||||||
@@ -110,14 +112,15 @@ function TldTable(filters: FiltersType) {
|
|||||||
fetchData({...filters, page, itemsPerPage})
|
fetchData({...filters, page, itemsPerPage})
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
scroll={sm ? {} : {y: '50vh'}}
|
||||||
scroll={{y: '50vh'}}
|
size={sm ? 'small' : 'large'}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function TldPage() {
|
export default function TldPage() {
|
||||||
const [activeTabKey, setActiveTabKey] = useState<string>('gTLD')
|
const [activeTabKey, setActiveTabKey] = useState<string>('gTLD')
|
||||||
|
const sm = useBreakpoint("sm")
|
||||||
|
|
||||||
const contentList: Record<string, React.ReactNode> = {
|
const contentList: Record<string, React.ReactNode> = {
|
||||||
sTLD: <>
|
sTLD: <>
|
||||||
@@ -185,6 +188,7 @@ export default function TldPage() {
|
|||||||
activeTabKey={activeTabKey}
|
activeTabKey={activeTabKey}
|
||||||
key={activeTabKey}
|
key={activeTabKey}
|
||||||
onTabChange={(k: string) => setActiveTabKey(k)}
|
onTabChange={(k: string) => setActiveTabKey(k)}
|
||||||
|
size={sm ? 'small' : 'default'}
|
||||||
>
|
>
|
||||||
{contentList[activeTabKey]}
|
{contentList[activeTabKey]}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user