Skip to content

Commit

Permalink
Merge pull request #7630 from andrico1234/bugfix/allow-styleoverrides…
Browse files Browse the repository at this point in the history
…-for-simpleformiterator

Bugifx: Allow style overrides for SimpleFormIterator
  • Loading branch information
djhi committed May 5, 2022
2 parents c769bed + 0b378b9 commit f0d6b3a
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ import { RaRecord } from 'ra-core';
import { UseFieldArrayReturn } from 'react-hook-form';

import { useArrayInput } from './useArrayInput';
import { SimpleFormIteratorClasses } from './useSimpleFormIteratorStyles';
import {
SimpleFormIteratorClasses,
SimpleFormIteratorPrefix,
} from './useSimpleFormIteratorStyles';
import { SimpleFormIteratorContext } from './SimpleFormIteratorContext';
import {
DisableRemoveFunction,
Expand Down Expand Up @@ -176,7 +179,10 @@ export interface SimpleFormIteratorProps extends Partial<UseFieldArrayReturn> {
source?: string;
}

const Root = styled('ul')(({ theme }) => ({
const Root = styled('ul', {
name: SimpleFormIteratorPrefix,
overridesResolver: (props, styles) => styles.root,
})(({ theme }) => ({
padding: 0,
marginBottom: 0,
'& > li:last-child': {
Expand Down

0 comments on commit f0d6b3a

Please sign in to comment.