Skip to content

Commit 3d1ec61

Browse files
committed
Fix lint
1 parent 36c90d8 commit 3d1ec61

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

packages/mui-component-mapper/src/files/field-array.js

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,19 @@ const useFielArrayStyles = makeStyles({
3636
}
3737
});
3838

39-
const ArrayItem = ({ fields, fieldIndex, name, remove, length, minItems, removeLabel, FieldContainerProps, FieldGroupGridProps, RemoveButtonGridProps, RemoveButtonProps }) => {
39+
const ArrayItem = ({
40+
fields,
41+
fieldIndex,
42+
name,
43+
remove,
44+
length,
45+
minItems,
46+
removeLabel,
47+
FieldContainerProps,
48+
FieldGroupGridProps,
49+
RemoveButtonGridProps,
50+
RemoveButtonProps
51+
}) => {
4052
const { renderForm } = useFormApi();
4153
const classes = useFielArrayStyles();
4254

@@ -204,7 +216,14 @@ const DynamicArray = ({ ...props }) => {
204216
<IconButton color="primary" aria-label="undo" component="span" disabled={state.index === 0} onClick={undo} {...UndoButtonProps}>
205217
<UndoIcon />
206218
</IconButton>
207-
<IconButton color="primary" aria-label="redo" component="span" disabled={state.index === state.history.length} onClick={redo} {...RedoButtonProps}>
219+
<IconButton
220+
color="primary"
221+
aria-label="redo"
222+
component="span"
223+
disabled={state.index === state.history.length}
224+
onClick={redo}
225+
{...RedoButtonProps}
226+
>
208227
<RedoIcon />
209228
</IconButton>
210229
<Button color="primary" onClick={pushWrapper} disabled={value.length >= maxItems} {...AddButtonProps}>
@@ -213,7 +232,9 @@ const DynamicArray = ({ ...props }) => {
213232
</Grid>
214233
{description && (
215234
<Grid item xs={12} {...DescriptionGridProps}>
216-
<Typography variant="subtitle1" {...DescriptionProps}>{description}</Typography>
235+
<Typography variant="subtitle1" {...DescriptionProps}>
236+
{description}
237+
</Typography>
217238
</Grid>
218239
)}
219240
<Grid item xs={12} {...BodyGridProps}>

0 commit comments

Comments
 (0)