fix(ui): fix warning progress bar in overview modal

This commit is contained in:
Łukasz Mierzwa
2019-07-11 10:22:30 +01:00
parent bc01955ef9
commit 3b2ed27e25
3 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ exports[`<MountedLabelWithPercent /> matches snapshot 1`] = `
</span>
</span>
<div class=\\"progress silence-progress bg-white pr-1\\">
<div class=\\"progress-bar bg-success\\"
<div class=\\"progress-bar bg-warning\\"
role=\\"progressbar\\"
style=\\"width: 50%;\\"
aria-valuenow=\\"50\\"

View File

@@ -32,7 +32,7 @@ const LabelWithPercent = inject("alertStore")(
const progressBarBg =
percent > 66
? "bg-danger"
: percent > 66
: percent > 33
? "bg-warning"
: "bg-success";

View File

@@ -52,7 +52,7 @@ exports[`<OverviewModalContent /> matches snapshot with labels to show 1`] = `
</span>
</span>
<div class=\\"progress silence-progress bg-white pr-1\\">
<div class=\\"progress-bar bg-success\\"
<div class=\\"progress-bar bg-warning\\"
role=\\"progressbar\\"
style=\\"width: 50%;\\"
aria-valuenow=\\"50\\"