Skip to content

Commit

Permalink
[chore] pass custom classes to ListHeader (#2357)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorDykhta authored Oct 5, 2023
1 parent 5a9fa5b commit e8220b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/src/common/item-selector/dropdown-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const DropdownFooterWrapper = styled.div`
interface DropdownListProps {
options?: any[];
allowCustomValues?: number;
customClasses?: object;
customClasses?: {listHeader?: string};
customValues?: any[];
customListItemComponent?: ElementType;
customListHeaderComponent?: ElementType;
Expand Down Expand Up @@ -209,7 +209,7 @@ export default class DropdownList extends Component<DropdownListProps, DropdownL
return (
<DropdownListWrapper className={classList.list} light={light}>
{this.props.customListHeaderComponent ? (
<div className={classList.listHeader}>
<div className={classNames(classList.listHeader, this.props.customClasses?.listHeader)}>
<this.props.customListHeaderComponent />
</div>
) : null}
Expand Down

0 comments on commit e8220b0

Please sign in to comment.