From f2054b6945e5a26f3491d377a1693f64f3f3bca9 Mon Sep 17 00:00:00 2001 From: Dakshesh Jain <65905942+dakshesh14@users.noreply.github.com> Date: Fri, 24 Mar 2023 23:32:33 +0530 Subject: [PATCH] style: removed color text from label modal (#527) also closing color picker on color select --- apps/app/components/labels/create-label-modal.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/app/components/labels/create-label-modal.tsx b/apps/app/components/labels/create-label-modal.tsx index 94757fd24..e07de48f5 100644 --- a/apps/app/components/labels/create-label-modal.tsx +++ b/apps/app/components/labels/create-label-modal.tsx @@ -106,14 +106,13 @@ export const CreateLabelModal: React.FC = ({ isOpen, projectId, handleClo
- {({ open }) => ( + {({ open, close }) => ( <> - Color {watch("color") && watch("color") !== "" && ( = ({ isOpen, projectId, handleClo render={({ field: { value, onChange } }) => ( onChange(value.hex)} + onChange={(value) => { + onChange(value.hex); + close(); + }} /> )} />