Client: use colors from theme

This commit is contained in:
Viktor Fomin 2024-07-02 16:37:57 +03:00
parent 1ea80ce7d9
commit 159e3d25e4

View File

@ -45,20 +45,20 @@ const StatusBadge = (props) => {
status >= 200 && status < 300 status >= 200 && status < 300
? theme.isBase ? theme.isBase
? { ? {
backgroundColor: "rgba(53, 173, 23, 0.1)", backgroundColor: globalColors.alphaGreenLight,
color: globalColors.lightStatusPositive, color: globalColors.lightStatusPositive,
} }
: { : {
backgroundColor: "rgba(59, 164, 32, 0.1)", backgroundColor: globalColors.alphaGreenDark,
color: globalColors.darkStatusPositive, color: globalColors.darkStatusPositive,
} }
: theme.isBase : theme.isBase
? { ? {
backgroundColor: "rgba(242, 28, 14, 0.1)", backgroundColor: globalColors.alphaRedLight,
color: globalColors.lightErrorStatus, color: globalColors.lightErrorStatus,
} }
: { : {
backgroundColor: "rgba(224, 100, 81, 0.1)", backgroundColor: globalColors.alphaRedDark,
color: globalColors.darkErrorStatus, color: globalColors.darkErrorStatus,
}; };
const { t } = useTranslation(["Webhooks"]); const { t } = useTranslation(["Webhooks"]);