change(ui): dashboard interactive
This commit is contained in:
parent
d2dfc2430c
commit
11453b80a2
2 changed files with 1 additions and 7 deletions
|
|
@ -1,8 +1,5 @@
|
|||
import React from 'react';
|
||||
import { Icon, NoContent } from 'UI';
|
||||
import { Styles } from '../../common';
|
||||
import { numberWithCommas } from 'App/utils';
|
||||
import Bar from './Bar';
|
||||
import { NO_METRIC_DATA } from 'App/constants/messages';
|
||||
import ListWithIcons from 'Components/Dashboard/Widgets/ListWithIcons';
|
||||
|
||||
|
|
@ -12,9 +9,6 @@ interface Props {
|
|||
|
||||
function ErrorsPerDomain(props: Props) {
|
||||
const { data } = props;
|
||||
// const firstAvg = 10;
|
||||
// const firstAvg = data.chart[0] && data.chart[0].errorsCount;
|
||||
|
||||
const highest = data.chart[0] && data.chart[0].errorsCount;
|
||||
const list = data.chart.slice(0, 4).map((item: any) => ({
|
||||
name: item.domain,
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ function DashboardWidgetGrid(props: Props) {
|
|||
}
|
||||
dashboardId={dashboardId}
|
||||
siteId={siteId}
|
||||
isWidget={true}
|
||||
isWidget={false}
|
||||
grid="other"
|
||||
/>
|
||||
</React.Fragment>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue