Skip to content

Commit

Permalink
renamed useSystemProps to addSystemProps
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Oct 2, 2020
1 parent d906feb commit 0822e62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/material-ui-lab/src/SliderStyled/SliderStyled.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const overridesResolver = (props, styles, name) => {
const SliderRoot = muiStyled(
'span',
{},
{ muiName: 'MuiSlider', overridesResolver, useSystemProps: true },
{ muiName: 'MuiSlider', overridesResolver, addSystemProps: true },
)((props) => ({
height: 2,
width: '100%',
Expand Down
1 change: 1 addition & 0 deletions packages/material-ui/src/styles/muiStyled.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export interface StyledOptions {
interface MuiStyledOptions<Theme extends object = any> {
muiName: string;
overridesResolver?: (props: any, styles: string | object, name: string) => string | object;
addSystemProps?: boolean;
}

export interface CreateStyled<Theme extends object = any> {
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/styles/muiStyled.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const muiStyled = (tag, options, muiOptions) => {
return variantsResolver(props, getVariantStyles(name, theme), theme, name);
});

if (muiOptions && muiOptions.useSystemProps) {
if (muiOptions && muiOptions.addSystemProps) {
styles.push(systemStyleFunction);
}

Expand Down

0 comments on commit 0822e62

Please sign in to comment.