From ed6c0597d7da5ce306522a6c006ae046490cb55e Mon Sep 17 00:00:00 2001 From: MahtabBukhari Date: Thu, 26 Sep 2024 15:43:01 +0500 Subject: [PATCH] fix(create-type): header and Indexes shoud be invisible --- .../BlueprintModal/Body/Editor/index.tsx | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx b/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx index 03df72858..99fec8a2a 100644 --- a/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx +++ b/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx @@ -454,6 +454,8 @@ export const Editor = ({ return undefined }, [selectedSchema, attributes]) + const parentType = selectedSchema ? selectedSchema.type : parent + return ( @@ -543,25 +545,24 @@ export const Editor = ({ )} - + {parentType && } - - - - Indexes + {parentType && ( + + + + Indexes + + + setValue('selectedIndex', val?.value || '')} + options={attributes.map((attr) => ({ label: attr.key, value: attr.key }))} + selectedValue={resolvedSelectedIndexValue} + /> + + - - setValue('selectedIndex', val?.value || '')} - options={attributes.map((attr) => ({ label: attr.key, value: attr.key }))} - selectedValue={resolvedSelectedIndexValue} - /> - - - + )} {selectedSchema && ( @@ -607,7 +608,7 @@ export const Editor = ({ } const CustomButton = styled(Button)` - width: 100% !important; + width: 400px !important; margin: 0 auto !important; `