This commit is contained in:
Jan Prochazka
2020-11-12 15:58:01 +01:00
parent 2eca08944f
commit 8b610cdf32
4 changed files with 12 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ import { ExpandIcon } from '../icons';
import useTheme from '../theme/useTheme';
const SubItemsDiv = styled.div`
margin-left: 16px;
margin-left: 28px;
`;
const ExpandIconHolder2 = styled.span`

View File

@@ -31,6 +31,12 @@ const StatusIconWrap = styled.span`
margin-left: 5px;
`;
const ExtInfoWrap = styled.span`
font-weight: normal;
margin-left: 5px;
color: ${(props) => props.theme.left_font3};
`;
export function AppObjectCore({
title,
icon,
@@ -43,6 +49,7 @@ export function AppObjectCore({
component = 'div',
prefix = null,
statusIcon,
extInfo,
statusTitle,
...other
}) {
@@ -78,6 +85,7 @@ export function AppObjectCore({
<FontIcon icon={statusIcon} title={statusTitle} />
</StatusIconWrap>
)}
{extInfo && <ExtInfoWrap theme={theme}>{extInfo}</ExtInfoWrap>}
</Component>
);
}

View File

@@ -82,6 +82,7 @@ const connectionAppObject = (flags) => (
statusTitle = status.message;
}
}
const extInfo = engine;
return {
title,
@@ -94,6 +95,7 @@ const connectionAppObject = (flags) => (
onClick,
statusIcon,
statusTitle,
extInfo,
};
};