From 64c936b9b5fa239d5749d7271a4ac89615c662ab Mon Sep 17 00:00:00 2001 From: Saheb Giri <47132373+iamsahebgiri@users.noreply.github.com> Date: Thu, 30 Mar 2023 19:28:04 +0530 Subject: [PATCH] style: module modal consistent design (#625) --- apps/app/components/cycles/form.tsx | 3 +- apps/app/components/cycles/index.ts | 1 - apps/app/components/modules/form.tsx | 136 ++++++++++---------- apps/app/components/{cycles => ui}/date.tsx | 0 apps/app/components/ui/index.ts | 1 + 5 files changed, 68 insertions(+), 73 deletions(-) rename apps/app/components/{cycles => ui}/date.tsx (100%) diff --git a/apps/app/components/cycles/form.tsx b/apps/app/components/cycles/form.tsx index fa244d348..32cf45f2a 100644 --- a/apps/app/components/cycles/form.tsx +++ b/apps/app/components/cycles/form.tsx @@ -9,8 +9,7 @@ import cyclesService from "services/cycles.service"; // hooks import useToast from "hooks/use-toast"; // ui -import { Input, PrimaryButton, SecondaryButton, TextArea } from "components/ui"; -import { DateSelect } from "components/cycles"; +import { DateSelect, Input, PrimaryButton, SecondaryButton, TextArea } from "components/ui"; // helpers import { getDateRangeStatus, isDateRangeValid } from "helpers/date-time.helper"; // types diff --git a/apps/app/components/cycles/index.ts b/apps/app/components/cycles/index.ts index 33a43c18c..6de1ae130 100644 --- a/apps/app/components/cycles/index.ts +++ b/apps/app/components/cycles/index.ts @@ -8,4 +8,3 @@ export * from "./sidebar"; export * from "./single-cycle-card"; export * from "./empty-cycle"; export * from "./transfer-issues-modal"; -export * from "./date"; \ No newline at end of file diff --git a/apps/app/components/modules/form.tsx b/apps/app/components/modules/form.tsx index aa646693b..5b797e7c9 100644 --- a/apps/app/components/modules/form.tsx +++ b/apps/app/components/modules/form.tsx @@ -7,7 +7,13 @@ import useToast from "hooks/use-toast"; // components import { ModuleLeadSelect, ModuleMembersSelect, ModuleStatusSelect } from "components/modules"; // ui -import { CustomDatePicker, Input, PrimaryButton, SecondaryButton, TextArea } from "components/ui"; +import { + DateSelect, + Input, + PrimaryButton, + SecondaryButton, + TextArea, +} from "components/ui"; // helper import { isDateRangeValid } from "helpers/date-time.helper"; // types @@ -67,18 +73,19 @@ export const ModuleForm: React.FC = ({ handleFormSubmit, handleClose, sta
@@ -87,75 +94,64 @@ export const ModuleForm: React.FC = ({ handleFormSubmit, handleClose, sta