This commit is contained in:
Jan Prochazka
2020-11-19 12:48:21 +01:00
parent 9a2520a10a
commit 4a7d45e4d0
4 changed files with 4 additions and 4 deletions

View File

@@ -77,7 +77,7 @@ const connectionAppObject = (flags) => (
if (!status) statusIcon = 'icon loading'; if (!status) statusIcon = 'icon loading';
else if (status.name == 'pending') statusIcon = 'icon loading'; else if (status.name == 'pending') statusIcon = 'icon loading';
else if (status.name == 'ok') statusIcon = 'img green-ok'; else if (status.name == 'ok') statusIcon = 'img green-ok';
else statusIcon = 'img red-error'; else statusIcon = 'img error';
if (status && status.name == 'error') { if (status && status.name == 'error') {
statusTitle = status.message; statusTitle = status.message;
} }

View File

@@ -45,7 +45,7 @@ const iconNames = {
'img green-ok': 'mdi mdi-check-circle color-green-8', 'img green-ok': 'mdi mdi-check-circle color-green-8',
'img alert': 'mdi mdi-alert-circle color-blue-6', 'img alert': 'mdi mdi-alert-circle color-blue-6',
// 'img red-error': 'mdi mdi-close-circle color-red-7', 'img error': 'mdi mdi-close-circle color-red-7',
// 'img statusbar-ok': 'mdi mdi-check-circle color-on-statusbar-green', // 'img statusbar-ok': 'mdi mdi-check-circle color-on-statusbar-green',
'img archive': 'mdi mdi-table color-gold-7', 'img archive': 'mdi mdi-table color-gold-7',

View File

@@ -24,7 +24,7 @@ export default function ErrorMessageModal({ modalState, title = 'Error', message
<ModalContent> <ModalContent>
<Wrapper> <Wrapper>
<IconWrapper> <IconWrapper>
<FontIcon icon="img red-error" /> <FontIcon icon="img error" />
</IconWrapper> </IconWrapper>
{message} {message}
</Wrapper> </Wrapper>

View File

@@ -19,7 +19,7 @@ const ContainerSmall = styled.div`
margin-right: 10px; margin-right: 10px;
`; `;
export default function ErrorInfo({ message, icon = 'img red-error', isSmall = false }) { export default function ErrorInfo({ message, icon = 'img error', isSmall = false }) {
if (isSmall) { if (isSmall) {
return ( return (
<ContainerSmall> <ContainerSmall>