Skip to content

Commit

Permalink
fix proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed Sep 21, 2023
1 parent 317f2a7 commit a356bec
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/mui-joy/src/CircularProgress/CircularProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ const useUtilityClasses = (ownerState: CircularProgressOwnerState) => {
};

function getThickness(slot: 'track' | 'progress', defaultValue: string) {
return `var(${circularProgressCssVars[`${slot}Thickness`]}, var(${circularProgressCssVars.thickness}, ${defaultValue}))`;
return `var(${circularProgressCssVars[`${slot}Thickness`]}, var(${
circularProgressCssVars.thickness
}, ${defaultValue}))`;
}

const CircularProgressRoot = styled('span', {
Expand Down Expand Up @@ -184,7 +186,10 @@ const CircularProgressProgress = styled('circle', {
({ ownerState }) =>
!ownerState.determinate &&
css`
animation: var(${circularProgressCssVars.circulation}, 0.8s linear 0s infinite normal none running)
animation: var(
${circularProgressCssVars.circulation},
0.8s linear 0s infinite normal none running
)
${circulate};
`,
);
Expand Down Expand Up @@ -359,7 +364,7 @@ CircularProgress.propTypes /* remove-proptypes */ = {
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx: PropTypes.oneOfType([
sx: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([
PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])),
PropTypes.func,
PropTypes.object,
Expand Down

0 comments on commit a356bec

Please sign in to comment.