From 0b936472092371193a62ed0d809a292bc9a2f125 Mon Sep 17 00:00:00 2001 From: Nafees Nazik <84864519+G3root@users.noreply.github.com> Date: Tue, 24 Jan 2023 21:35:35 +0530 Subject: [PATCH] fix: double border issue in Location Select (#6646) * fix: border issue * fix: remove border from dropdown Signed-off-by: Udit Takkar Signed-off-by: Udit Takkar Co-authored-by: Udit Takkar --- .../components/dialog/EditLocationDialog.tsx | 49 ++++++++++--------- .../ui/components/form/select/components.tsx | 2 +- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/apps/web/components/dialog/EditLocationDialog.tsx b/apps/web/components/dialog/EditLocationDialog.tsx index 85426a66f5..1d9f99ae80 100644 --- a/apps/web/components/dialog/EditLocationDialog.tsx +++ b/apps/web/components/dialog/EditLocationDialog.tsx @@ -289,30 +289,31 @@ export const EditLocationDialog = (props: ISetLocationDialog) => { name="locationType" control={locationFormMethods.control} render={() => ( - { - if (val) { - locationFormMethods.setValue("locationType", val.value); - locationFormMethods.unregister([ - "locationLink", - "locationAddress", - "locationPhoneNumber", - ]); - locationFormMethods.clearErrors([ - "locationLink", - "locationPhoneNumber", - "locationAddress", - ]); - setSelectedLocation?.(val); - } - }} - /> +
+ { + if (val) { + locationFormMethods.setValue("locationType", val.value); + locationFormMethods.unregister([ + "locationLink", + "locationAddress", + "locationPhoneNumber", + ]); + locationFormMethods.clearErrors([ + "locationLink", + "locationPhoneNumber", + "locationAddress", + ]); + setSelectedLocation?.(val); + } + }} + /> +
)} /> ); diff --git a/packages/ui/components/form/select/components.tsx b/packages/ui/components/form/select/components.tsx index 8e44189af5..503c21c295 100644 --- a/packages/ui/components/form/select/components.tsx +++ b/packages/ui/components/form/select/components.tsx @@ -147,7 +147,7 @@ export const MenuComponent = <