Updated status messages on the About page

This commit is contained in:
Michael Arestad 2022-08-29 11:31:00 -06:00
parent 3d6f0b923a
commit 1bccfa509a

View File

@ -46,12 +46,15 @@ const Subheader = styled.div({
const UpdateMessage = styled.div<{ status: 'positive' | 'negative' | string }>(
({ status, theme }) => {
if (status === 'positive') {
return { background: theme.background.positive, color: theme.color.positive };
return { background: theme.background.positive, color: theme.color.positiveText };
}
if (status === 'negative') {
return { background: theme.background.negative, color: theme.color.negative };
return { background: theme.background.negative, color: theme.color.negativeText };
}
return { background: '#EAF3FC', color: theme.color.darkest };
return {
background: theme.base === 'light' ? '#EAF3FC' : theme.color.darkest,
color: theme.base === 'light' ? theme.color.darkest : theme.defaultText,
};
},
({ theme }) => ({