change(ui): dashboard interactive

This commit is contained in:
Shekar Siri 2024-07-02 10:15:50 +02:00
parent d2dfc2430c
commit 11453b80a2
2 changed files with 1 additions and 7 deletions

View file

@ -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,

View file

@ -54,7 +54,7 @@ function DashboardWidgetGrid(props: Props) {
}
dashboardId={dashboardId}
siteId={siteId}
isWidget={true}
isWidget={false}
grid="other"
/>
</React.Fragment>