|
|
@@ -556,10 +556,9 @@ export default class MetricsSection extends Component<PropsType, StateType> {
|
|
|
refresh
|
|
|
</RefreshMetrics> */}
|
|
|
|
|
|
- <Highlight color={"#7d7d81"} onClick={this.getMetrics}>
|
|
|
- <i className="material-icons">autorenew</i>
|
|
|
- </Highlight>
|
|
|
-
|
|
|
+ <Highlight color={"#7d7d81"} onClick={this.getMetrics}>
|
|
|
+ <i className="material-icons">autorenew</i>
|
|
|
+ </Highlight>
|
|
|
</Flex>
|
|
|
<RangeWrapper>
|
|
|
<TabSelector
|
|
|
@@ -577,13 +576,13 @@ export default class MetricsSection extends Component<PropsType, StateType> {
|
|
|
</MetricsHeader>
|
|
|
{this.state.isLoading > 0 && <Loading />}
|
|
|
{this.state.data.length === 0 && this.state.isLoading === 0 && (
|
|
|
- <Message>
|
|
|
- No data available yet.
|
|
|
- <Highlight color={"#8590ff"} onClick={this.getMetrics}>
|
|
|
- <i className="material-icons">autorenew</i>
|
|
|
- Refresh
|
|
|
- </Highlight>
|
|
|
- </Message>
|
|
|
+ <Message>
|
|
|
+ No data available yet.
|
|
|
+ <Highlight color={"#8590ff"} onClick={this.getMetrics}>
|
|
|
+ <i className="material-icons">autorenew</i>
|
|
|
+ Refresh
|
|
|
+ </Highlight>
|
|
|
+ </Message>
|
|
|
)}
|
|
|
|
|
|
{this.state.data.length > 0 && this.state.isLoading === 0 && (
|
|
|
@@ -611,30 +610,15 @@ const Highlight = styled.div`
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
margin-left: 8px;
|
|
|
- color: ${(props: {color: string}) => props.color};
|
|
|
+ color: ${(props: { color: string }) => props.color};
|
|
|
cursor: pointer;
|
|
|
|
|
|
-
|
|
|
> i {
|
|
|
font-size: 20px;
|
|
|
margin-right: 3px;
|
|
|
}
|
|
|
`;
|
|
|
|
|
|
-const RefreshMetrics = styled.span`
|
|
|
- :hover {
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
-`;
|
|
|
-
|
|
|
-const NoDataPlaceholder = styled.div`
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
-`;
|
|
|
-
|
|
|
const Label = styled.div`
|
|
|
font-weight: bold;
|
|
|
`;
|
|
|
@@ -644,16 +628,16 @@ const Relative = styled.div`
|
|
|
`;
|
|
|
|
|
|
const Message = styled.div`
|
|
|
-display: flex;
|
|
|
-height: 100%;
|
|
|
-width: calc(100% - 150px);
|
|
|
-align-items: center;
|
|
|
-justify-content: center;
|
|
|
-margin-left: 75px;
|
|
|
-text-align: center;
|
|
|
-color: #ffffff44;
|
|
|
-font-size: 13px;
|
|
|
-`
|
|
|
+ display: flex;
|
|
|
+ height: 100%;
|
|
|
+ width: calc(100% - 150px);
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ margin-left: 75px;
|
|
|
+ text-align: center;
|
|
|
+ color: #ffffff44;
|
|
|
+ font-size: 13px;
|
|
|
+`;
|
|
|
|
|
|
const IconWrapper = styled.div`
|
|
|
display: flex;
|