Skip to content

Commit

Permalink
[Loading] change the progress bar to red when there is an error / act…
Browse files Browse the repository at this point in the history
…ion required
  • Loading branch information
junhaoliao committed Aug 22, 2021
1 parent 5988a34 commit 51ff7e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/interface/components/Loading/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ export default class Loading extends React.Component {
))}
</Stepper>
<br/><br/>
<LinearProgressWithLabel variant="determinate" value={progressValue}/>
<LinearProgressWithLabel
variant="determinate"
color={Boolean(authentication) ? 'error' : 'primary'}
value={progressValue}/>
</div>
</div>

Expand Down

0 comments on commit 51ff7e8

Please sign in to comment.