From 48a730e30c253e45fef845c63d40386041879ba9 Mon Sep 17 00:00:00 2001 From: Vamsi krishna Date: Tue, 7 Jan 2025 13:35:49 +0530 Subject: [PATCH] chore: update issue-states settings ui --- .../project-states/create-update/form.tsx | 70 ++++++------ .../components/project-states/group-item.tsx | 102 +++++++++++++----- .../components/project-states/group-list.tsx | 24 ++++- .../project-states/state-item-title.tsx | 2 +- .../components/project-states/state-item.tsx | 4 +- 5 files changed, 135 insertions(+), 67 deletions(-) diff --git a/web/core/components/project-states/create-update/form.tsx b/web/core/components/project-states/create-update/form.tsx index 14c2dc0b771..105fb984f49 100644 --- a/web/core/components/project-states/create-update/form.tsx +++ b/web/core/components/project-states/create-update/form.tsx @@ -3,7 +3,7 @@ import { FormEvent, FC, useEffect, useState, useMemo } from "react"; import { TwitterPicker } from "react-color"; import { IState } from "@plane/types"; -import { Button, Popover, Input } from "@plane/ui"; +import { Button, Popover, Input, TextArea } from "@plane/ui"; type TStateForm = { data: Partial; @@ -59,47 +59,49 @@ export const StateForm: FC = (props) => { ); return ( -
+ {/* color */} -
+
handleFormData("color", value.hex)} />
- {/* title */} - handleFormData("name", e.target.value)} - hasError={(errors && Boolean(errors.name)) || false} - className="w-full" - maxLength={100} - autoFocus - /> - - {/* description */} - handleFormData("description", e.target.value)} - hasError={(errors && Boolean(errors.description)) || false} - className="w-full" - /> +
+ {/* title */} + handleFormData("name", e.target.value)} + hasError={(errors && Boolean(errors.name)) || false} + className="w-full" + maxLength={100} + autoFocus + /> - + {/* description */} +