From 2900b6670db19a497ff63d0210f931bb9857babd Mon Sep 17 00:00:00 2001 From: Sain Date: Tue, 22 Nov 2022 21:47:22 +0800 Subject: [PATCH] added tooltip and fix same ctid for component template issue --- src/App.tsx | 6 +- src/components/cardWithLeftIcon/index.tsx | 647 ++++++++++++---------- src/components/dropWrapper/index.tsx | 12 +- src/components/infoTooltip/index.tsx | 4 +- src/components/leftPanel/index.tsx | 57 +- src/utils/object.ts | 24 + 6 files changed, 428 insertions(+), 322 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 0f25d49..db0ed6c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -280,7 +280,11 @@ const App = () => { width={520} visible={isSelectOrganizationsVisble} onOk={selectOrgOkHandler} - closable={false} + onCancel={() => { + process.env.NODE_ENV !== 'production' + ? (window.location.href = sanboxSetting.api.url) + : (window.location.href = productionSetting.api.url); + }} footer={[ <>