From 1a37a106f8c421829854ffcb75b64b7885b00005 Mon Sep 17 00:00:00 2001 From: kunish Date: Wed, 13 Sep 2023 23:36:24 +0800 Subject: [PATCH 1/2] feat(connections): shorten the tab names --- .../ConnectionsTableDetailsModal.tsx | 5 +++- .../ConnectionsTableOrderingModal.tsx | 27 +++++++++++-------- src/i18n/en.ts | 3 ++- src/i18n/zh.ts | 3 ++- src/pages/Connections.tsx | 14 +++++----- 5 files changed, 31 insertions(+), 21 deletions(-) diff --git a/src/components/ConnectionsTableDetailsModal.tsx b/src/components/ConnectionsTableDetailsModal.tsx index 836e3ff..3ed517a 100644 --- a/src/components/ConnectionsTableDetailsModal.tsx +++ b/src/components/ConnectionsTableDetailsModal.tsx @@ -5,7 +5,10 @@ export const ConnectionsTableDetailsModal: Component<{ selectedConnectionID?: string }> = (props) => { return ( - + ), @@ -293,12 +293,12 @@ export default () => { const tabs = createMemo(() => [ { type: ActiveTab.activeConnections, - name: t('activeConnections'), + name: t('active'), count: activeConnections().length, }, { type: ActiveTab.closedConnections, - name: t('closedConnections'), + name: t('closed'), count: closedConnections().length, }, ]) @@ -350,7 +350,7 @@ export default () => { } }} > - +