chore(ui): run prettier
This contains no changes other than formatting
import { AutoForm, IFormDefinition } from '@syndesis/auto-form';
import { IAutoFormActions } from '@syndesis/auto-form/src';
-import { FilterOptions } from "@syndesis/models";
+import { FilterOptions } from '@syndesis/models';
import { validateRequiredProperties } from '@syndesis/utils';
import * as React from 'react';
import { useTranslation } from 'react-i18next';
@@ -23,9 +23,15 @@ export interface IWithChoiceConfigurationFormProps {
children(props: IWithChoiceConfigurationFormChildrenProps): any;
}
-export const WithChoiceConfigurationForm: React.FunctionComponent<
- IWithChoiceConfigurationFormProps
-> = ({ onUpdatedIntegration, filterOptions, stepId, initialValue, children, configMode }) => {
+export const WithChoiceConfigurationForm: React.FunctionComponent<IWithChoiceConfigurationFormProps> =
+ ({
+ onUpdatedIntegration,
+ filterOptions,
+ stepId,
+ initialValue,
+ children,
+ configMode,
+ }) => {
const { t } = useTranslation(['integrations', 'shared']);
const basicMode = configMode === 'basic';
@@ -40,10 +46,14 @@ export const WithChoiceConfigurationForm: React.FunctionComponent<
arrayDefinition: {
condition: {
defaultValue: '',
- description: t('integrations:editor:choiceForm:conditionDescription'),
+ description: t(
+ 'integrations:editor:choiceForm:conditionDescription'
+ ),
displayName: '',
order: 0,
- placeholder: t('integrations:editor:choiceForm:conditionPlaceholder'),
+ placeholder: t(
+ 'integrations:editor:choiceForm:conditionPlaceholder'
+ ),
required: advancedMode,
type: advancedMode ? 'text' : 'hidden',
},
@@ -58,7 +68,9 @@ export const WithChoiceConfigurationForm: React.FunctionComponent<
},
op: {
defaultValue: 'contains',
- description: t('integrations:editor:choiceForm:operatorDescription'),
+ description: t(
+ 'integrations:editor:choiceForm:operatorDescription'
+ ),
displayName: '',
enum: filterOptions.ops,
order: 2,
@@ -75,10 +87,14 @@ export const WithChoiceConfigurationForm: React.FunctionComponent<
type: basicMode ? 'text' : 'hidden',
},
value: {
- description: t('integrations:editor:choiceForm:keywordsDescription'),
+ description: t(
+ 'integrations:editor:choiceForm:keywordsDescription'
+ ),
displayName: '',
order: 3,
- placeholder: t('integrations:editor:choiceForm:keywordsPlaceholder'),
+ placeholder: t(
+ 'integrations:editor:choiceForm:keywordsPlaceholder'
+ ),
required: basicMode,
type: basicMode ? 'text' : 'hidden',
},
@@ -113,7 +129,7 @@ export const WithChoiceConfigurationForm: React.FunctionComponent<
otherwise: {
displayName: t('integrations:editor:choiceForm:otherwise'),
order: 2,
- type: 'legend'
+ type: 'legend',
},
routingScheme: {
defaultValue: 'direct',
