From dddfeb17b71669f3745b82f91b11ff1379ec1f36 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Mon, 17 Jul 2023 17:35:47 +0530 Subject: [PATCH] refactor: dropdowns (#1532) --- .../automation/auto-archive-automation.tsx | 19 +-- .../automation/auto-close-automation.tsx | 67 ++++---- .../spreadsheet-view/spreadsheet-columns.tsx | 9 +- .../spreadsheet-view/spreadsheet-view.tsx | 2 +- .../issues/view-select/assignee.tsx | 2 +- .../components/issues/view-select/label.tsx | 5 +- .../app/components/modules/select/members.tsx | 2 +- .../modules/sidebar-select/select-lead.tsx | 2 +- .../modules/sidebar-select/select-members.tsx | 2 +- .../project/send-project-invitation-modal.tsx | 2 +- apps/app/components/ui/custom-menu.tsx | 2 +- .../ui/{ => dropdowns}/context-menu.tsx | 0 .../components/ui/dropdowns/custom-menu.tsx | 153 ++++++++++++++++++ .../{ => dropdowns}/custom-search-select.tsx | 101 +++++------- .../ui/{ => dropdowns}/custom-select.tsx | 75 ++++----- apps/app/components/ui/dropdowns/index.ts | 5 + apps/app/components/ui/dropdowns/types.d.ts | 15 ++ apps/app/components/ui/index.ts | 7 +- 18 files changed, 287 insertions(+), 183 deletions(-) rename apps/app/components/ui/{ => dropdowns}/context-menu.tsx (100%) create mode 100644 apps/app/components/ui/dropdowns/custom-menu.tsx rename apps/app/components/ui/{ => dropdowns}/custom-search-select.tsx (68%) rename apps/app/components/ui/{ => dropdowns}/custom-select.tsx (59%) create mode 100644 apps/app/components/ui/dropdowns/index.ts create mode 100644 apps/app/components/ui/dropdowns/types.d.ts diff --git a/apps/app/components/automation/auto-archive-automation.tsx b/apps/app/components/automation/auto-archive-automation.tsx index 8d1ba4ebe..8772371c4 100644 --- a/apps/app/components/automation/auto-archive-automation.tsx +++ b/apps/app/components/automation/auto-archive-automation.tsx @@ -28,11 +28,11 @@ export const AutoArchiveAutomation: React.FC = ({ projectDetails, handleC handleClose={() => setmonthModal(false)} handleChange={handleChange} /> -
-
+
+

Auto-archive closed issues

-

+

Plane will automatically archive issues that have been completed or cancelled for the configured time period.

@@ -52,17 +52,12 @@ export const AutoArchiveAutomation: React.FC = ({ projectDetails, handleC
Auto-archive issues that are closed for
-
+
- {`${projectDetails?.archive_in} ${ - projectDetails?.archive_in === 1 ? "Month" : "Months" - }`} -