Skip to content

Commit

Permalink
fix(ProgressBar): Don't use deprecated prop for CircularProgres (#186)
Browse files Browse the repository at this point in the history
This gets rid of the warning message printed in the chrome console:

```
Warning: Failed prop type: Material-UI: `variant="static"` was deprecated. Use `variant="determinate"` instead.
```
  • Loading branch information
cogwirrel authored May 12, 2021
1 parent 8af2b21 commit 3b79859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ProgressBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ const CircularProgressWithLabel: React.FunctionComponent<
<Box position="relative" display="inline-flex">
<CircularProgress
value={100}
variant={'static'}
variant="determinate"
classes={{ colorPrimary: classes.circularColorBottom }}
{...props}
/>
<CircularProgress
variant={'static'}
variant="determinate"
value={value}
classes={{ colorPrimary: classes.circularColorPrimary }}
{...props}
Expand Down

0 comments on commit 3b79859

Please sign in to comment.