File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 329329 "singular" : " Secret"
330330 },
331331 "services" : {
332- "singular" : " Service"
332+ "singular" : " Service" ,
333+ "empty" : " No services found. Click Add Service to create your first one."
334+
333335 },
334336 "settings" : {
335337 "adminKey" : " Admin Key" ,
Original file line number Diff line number Diff line change 1717import type { ProColumns } from '@ant-design/pro-components' ;
1818import { ProTable } from '@ant-design/pro-components' ;
1919import { createFileRoute } from '@tanstack/react-router' ;
20+ import { Empty } from 'antd' ;
2021import { useMemo } from 'react' ;
2122import { useTranslation } from 'react-i18next' ;
2223
@@ -91,6 +92,15 @@ const ServiceList = () => {
9192 return (
9293 < AntdConfigProvider >
9394 < ProTable
95+ locale = { {
96+ emptyText : (
97+ < Empty
98+ description = { t ( 'services.empty' ) }
99+ image = { Empty . PRESENTED_IMAGE_SIMPLE }
100+ />
101+ ) ,
102+ } }
103+
94104 columns = { columns }
95105 dataSource = { data . list }
96106 rowKey = "id"
You can’t perform that action at this time.
0 commit comments