From 737f1b018975f3e13a566c0dd744e1d1f545421f Mon Sep 17 00:00:00 2001 From: Alpha <61853980+AlphaGHX@users.noreply.github.com> Date: Tue, 19 Sep 2023 00:35:58 +0800 Subject: [PATCH] feat: add a close button to the modal (#239) * feat: add a close button to the modal * fix: replace modal close icon --- src/components/ConnectionsSettingsModal.tsx | 21 ++++++++++++---- .../ConnectionsTableDetailsModal.tsx | 24 +++++++++++++++---- src/components/LogsSettingsModal.tsx | 23 +++++++++++++++--- src/components/ProxiesSettingsModal.tsx | 24 +++++++++++++++---- 4 files changed, 76 insertions(+), 16 deletions(-) diff --git a/src/components/ConnectionsSettingsModal.tsx b/src/components/ConnectionsSettingsModal.tsx index ab0e686..bfaf205 100644 --- a/src/components/ConnectionsSettingsModal.tsx +++ b/src/components/ConnectionsSettingsModal.tsx @@ -109,6 +109,7 @@ export const ConnectionsSettingsModal = (props: { onOrderChange: (value: ConnectionsTableColumnOrder) => void onVisibleChange: (value: ConnectionsTableColumnVisibility) => void }) => { + const modalID = MODAL.CONNECTIONS_SETTINGS const [t] = useI18n() const [activeKey, setActiveKey] = createSignal(null) @@ -175,14 +176,26 @@ export const ConnectionsSettingsModal = (props: { } return ( - +