diff --git a/frontend/libs/studio-components/src/components/StudioDropdownMenu/StudioDropdownMenu.tsx b/frontend/libs/studio-components/src/components/StudioDropdownMenu/StudioDropdownMenu.tsx index e3278b6df4a..cf7fdc61141 100644 --- a/frontend/libs/studio-components/src/components/StudioDropdownMenu/StudioDropdownMenu.tsx +++ b/frontend/libs/studio-components/src/components/StudioDropdownMenu/StudioDropdownMenu.tsx @@ -17,23 +17,21 @@ export const StudioDropdownMenu = ({ }: StudioDropdownMenuProps) => { const [open, setOpen] = useState(false); return ( - <> - setOpen(false)} open={open}> - - setOpen(!open)} - {...anchorButtonProps} - /> - - - - {children} - - - - + setOpen(false)} open={open}> + + setOpen(!open)} + {...anchorButtonProps} + /> + + + + {children} + + + ); }; diff --git a/frontend/packages/policy-editor/src/components/PolicyCardRules/PolicyRule/ExpandablePolicyElement/PolicyEditorDropdownMenu/PolicyEditorDropdownMenu.tsx b/frontend/packages/policy-editor/src/components/PolicyCardRules/PolicyRule/ExpandablePolicyElement/PolicyEditorDropdownMenu/PolicyEditorDropdownMenu.tsx index cdec4c752a0..151a9e67b94 100644 --- a/frontend/packages/policy-editor/src/components/PolicyCardRules/PolicyRule/ExpandablePolicyElement/PolicyEditorDropdownMenu/PolicyEditorDropdownMenu.tsx +++ b/frontend/packages/policy-editor/src/components/PolicyCardRules/PolicyRule/ExpandablePolicyElement/PolicyEditorDropdownMenu/PolicyEditorDropdownMenu.tsx @@ -25,34 +25,32 @@ export const PolicyEditorDropdownMenu = ({ const { t } = useTranslation(); return ( - <> - - - } - onClick={handleClickMoreIcon} - size='small' - title={t('policy_editor.more')} - variant='tertiary' - /> - - - - - - {t('policy_editor.expandable_card_dropdown_copy')} - - - - {t('general.delete')} - - - - - + + + } + onClick={handleClickMoreIcon} + size='small' + title={t('policy_editor.more')} + variant='tertiary' + /> + + + + + + {t('policy_editor.expandable_card_dropdown_copy')} + + + + {t('general.delete')} + + + + ); }; diff --git a/frontend/packages/schema-editor/src/components/SchemaTree/SchemaNode/ActionButtons/AddPropertyMenu.tsx b/frontend/packages/schema-editor/src/components/SchemaTree/SchemaNode/ActionButtons/AddPropertyMenu.tsx index 63fb351247b..b643f248b44 100644 --- a/frontend/packages/schema-editor/src/components/SchemaTree/SchemaNode/ActionButtons/AddPropertyMenu.tsx +++ b/frontend/packages/schema-editor/src/components/SchemaTree/SchemaNode/ActionButtons/AddPropertyMenu.tsx @@ -30,34 +30,32 @@ export const AddPropertyMenu = ({ pointer }: AddPropertyMenuProps) => { const closeDropdown = () => setIsAddDropdownOpen(false); return ( - <> - - - } - onClick={() => setIsAddDropdownOpen(true)} - titleKey='schema_editor.add_node_of_type' - /> - - - - - - {t('schema_editor.add_field')} - - - - {t('schema_editor.add_combination')} - - - - {t('schema_editor.add_reference')} - - - - - + + + } + onClick={() => setIsAddDropdownOpen(true)} + titleKey='schema_editor.add_node_of_type' + /> + + + + + + {t('schema_editor.add_field')} + + + + {t('schema_editor.add_combination')} + + + + {t('schema_editor.add_reference')} + + + + ); }; diff --git a/frontend/packages/ux-editor-v3/src/components/config/Expressions/NewExpressionButton.tsx b/frontend/packages/ux-editor-v3/src/components/config/Expressions/NewExpressionButton.tsx index fc8f344a8aa..b1b613815d4 100644 --- a/frontend/packages/ux-editor-v3/src/components/config/Expressions/NewExpressionButton.tsx +++ b/frontend/packages/ux-editor-v3/src/components/config/Expressions/NewExpressionButton.tsx @@ -16,45 +16,43 @@ export const NewExpressionButton = ({ options, onAddExpression }: NewExpressionB const t = useText(); return ( - <> - setShowDropdown(false)} - open={showDropdown} - placement='top' - portal - size='small' - > - - } - onClick={() => setShowDropdown(!showDropdown)} - size='small' - title={t('right_menu.expressions_add')} - variant='secondary' - > - {t('right_menu.expressions_add')} - - - - - {options.map((o) => ( - { - setShowDropdown(false); - onAddExpression(o); - }} - > - {expressionPropertyTexts(t)[o]} - - ))} - - - - + setShowDropdown(false)} + open={showDropdown} + placement='top' + portal + size='small' + > + + } + onClick={() => setShowDropdown(!showDropdown)} + size='small' + title={t('right_menu.expressions_add')} + variant='secondary' + > + {t('right_menu.expressions_add')} + + + + + {options.map((o) => ( + { + setShowDropdown(false); + onAddExpression(o); + }} + > + {expressionPropertyTexts(t)[o]} + + ))} + + + ); }; diff --git a/frontend/packages/ux-editor-v3/src/containers/DesignView/PageAccordion/NavigationMenu/InputPopover/InputPopover.tsx b/frontend/packages/ux-editor-v3/src/containers/DesignView/PageAccordion/NavigationMenu/InputPopover/InputPopover.tsx index c74857ae15d..01f17e44c71 100644 --- a/frontend/packages/ux-editor-v3/src/containers/DesignView/PageAccordion/NavigationMenu/InputPopover/InputPopover.tsx +++ b/frontend/packages/ux-editor-v3/src/containers/DesignView/PageAccordion/NavigationMenu/InputPopover/InputPopover.tsx @@ -67,56 +67,54 @@ export const InputPopover = ({ }; return ( - <> - - - setIsEditDialogOpen(true)} - id='edit-page-button' - disabled={disabled} - ref={newNameRef} - aria-expanded={isEditDialogOpen} + + + setIsEditDialogOpen(true)} + id='edit-page-button' + disabled={disabled} + ref={newNameRef} + aria-expanded={isEditDialogOpen} + > + + {t('ux_editor.page_menu_edit')} + + + + + + {errorMessage} + +
+ saveNewName(newName)} + disabled={!shouldSavingBeEnabled} + size='small' > - - {t('ux_editor.page_menu_edit')} - - - - + ) => { + event.stopPropagation(); + handleClose(); + }} size='small' - onChange={handleOnChange} - onKeyDown={handleKeyPress} - value={newName} - error={errorMessage !== null} - /> - - {errorMessage} - -
- saveNewName(newName)} - disabled={!shouldSavingBeEnabled} - size='small' - > - {t('ux_editor.input_popover_save_button')} - - ) => { - event.stopPropagation(); - handleClose(); - }} - size='small' - > - {t('general.cancel')} - -
-
- - + > + {t('general.cancel')} +
+
+
+
); };