mirror of
https://github.com/oceanprotocol/status-frontend.git
synced 2024-11-21 17:36:58 +01:00
adapt styles to new severities
This commit is contained in:
parent
e7c986aad9
commit
92dc57905e
@ -22,11 +22,11 @@ function statusIcon(state: State): ReactElement {
|
|||||||
|
|
||||||
function statusStyle(state: State) {
|
function statusStyle(state: State) {
|
||||||
if (state === State.Outage) {
|
if (state === State.Outage) {
|
||||||
return styles.down
|
return styles.outage
|
||||||
} else if (state === State.Degraded) {
|
} else if (state === State.Degraded) {
|
||||||
return styles.warning
|
return styles.degraded
|
||||||
} else {
|
} else {
|
||||||
return styles.up
|
return styles.normal
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,11 +102,11 @@
|
|||||||
stroke: var(--color-primary);
|
stroke: var(--color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.warning {
|
.degraded {
|
||||||
border-color: var(--brand-alert-yellow);
|
border-color: var(--brand-alert-yellow);
|
||||||
}
|
}
|
||||||
|
|
||||||
.down {
|
.outage {
|
||||||
border-color: var(--brand-alert-red);
|
border-color: var(--brand-alert-red);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,11 +147,11 @@
|
|||||||
list-style-position: outside;
|
list-style-position: outside;
|
||||||
}
|
}
|
||||||
|
|
||||||
.warning .messages {
|
.degraded .messages {
|
||||||
color: var(--brand-alert-orange);
|
color: var(--brand-alert-orange);
|
||||||
}
|
}
|
||||||
|
|
||||||
.down .messages {
|
.outage .messages {
|
||||||
color: var(--brand-alert-red);
|
color: var(--brand-alert-red);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user