Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Jan 27, 2021
1 parent 3cd17cd commit e29d24d
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions packages/material-ui/src/CircularProgress/CircularProgress.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,8 @@ const CircularProgressRoot = experimentalStyled(
styleProps.variant === 'indeterminate' && 'infinite'};
color: ${({ styleProps, theme }) =>
styleProps.color === 'primary'
? theme.palette.primary.main
: styleProps.color === 'secondary'
? theme.palette.secondary.main
styleProps.color === 'primary' || styleProps.color === 'secondary'
? theme.palette[styleProps.color].main
: undefined};
`;

Expand Down Expand Up @@ -126,12 +124,12 @@ const CircularProgressCircle = experimentalStyled(
? theme.transitions.create('stroke-dashoffset')
: undefined};
animation-name: ${({ styleProps }) =>
styleProps.disableShrink
? 'none'
: styleProps.variant === 'indeterminate'
? circularDashKeyframe
: undefined};
animation-name: ${({ styleProps }) => {
if (styleProps.disableShrink) {
return 'none';
}
return styleProps.variant === 'indeterminate' ? circularDashKeyframe : undefined;
}};
animation-duration: ${({ styleProps }) => styleProps.variant === 'indeterminate' && '1.4s'};
animation-timing-function: ${({ styleProps }) =>
styleProps.variant === 'indeterminate' && 'ease-in-out'};
Expand Down

0 comments on commit e29d24d

Please sign in to comment.