Use standardized colors instead of color codes

This commit is contained in:
Ceda EI 2021-01-03 12:25:49 +05:30
parent cfd0056197
commit 49430114fe
3 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ function Accident(props) {
{
time === 0 ?
<Aid color="plain" size="xlarge" />
:<Impact color="#D0C100" size="xlarge" />
:<Impact color="status-critical" size="xlarge" />
}
<Heading>{
time === 0 ?

View File

@ -23,7 +23,7 @@ function PetMode(props) {
<GenericPageWithIcon
title={temp === null ? "Fetching temperature": `${temp}°C`}
description={`The temperature inside is ${temp}°C. The pet / child is ${temp > 35 ? "un": ""}safe.`}
icon={<Sun color={temp > 35 ? "#E30000": "plain"} size="xlarge" />}
icon={<Sun color={temp > 35 ? "status-critical": "plain"} size="xlarge" />}
close={props.close}
/>);
}

View File

@ -8,7 +8,7 @@ function Warning(props) {
<GenericPageWithIcon
title={props.data.title}
description={props.data.description}
icon={<Alert color="#D0C100" size="xlarge" />}
icon={<Alert color="status-critical" size="xlarge" />}
close={props.close}
/>);
}