diff --git a/packages/ui/src/components/Form/expression/ExpressionModalLauncher.scss b/packages/ui/src/components/Form/expression/ExpressionModalLauncher.scss new file mode 100644 index 000000000..8dadf8d62 --- /dev/null +++ b/packages/ui/src/components/Form/expression/ExpressionModalLauncher.scss @@ -0,0 +1,3 @@ +.expression-field { + margin: 24px 0; +} diff --git a/packages/ui/src/components/Form/expression/ExpressionModalLauncher.tsx b/packages/ui/src/components/Form/expression/ExpressionModalLauncher.tsx index ccf76b0ef..a76ebcdb5 100644 --- a/packages/ui/src/components/Form/expression/ExpressionModalLauncher.tsx +++ b/packages/ui/src/components/Form/expression/ExpressionModalLauncher.tsx @@ -1,8 +1,10 @@ -import { Button, Modal, Split, SplitItem, TextInput } from '@patternfly/react-core'; +import { FieldHintPopover } from '@kaoto-next/uniforms-patternfly'; +import { Button, Form, FormGroup, InputGroup, InputGroupItem, Modal, TextInput } from '@patternfly/react-core'; import { PencilAltIcon } from '@patternfly/react-icons'; -import { ExpressionEditor } from './ExpressionEditor'; import { useState } from 'react'; import { ICamelLanguageDefinition } from '../../../models'; +import { ExpressionEditor } from './ExpressionEditor'; +import './ExpressionModalLauncher.scss'; export type ExpressionModalLauncherProps = { name: string; @@ -41,26 +43,30 @@ export const ExpressionModalLauncher = ({ const expressionLabel = language && model?.expression ? language.model.name + ': ' + model.expression : ''; return ( - <> - - - - - - - - +
+
+ }> + + + + + +
); };