change(ui) - insights - no content message
This commit is contained in:
parent
d15f5e779c
commit
aa70ee2841
3 changed files with 8 additions and 6 deletions
|
|
@ -1,8 +1,9 @@
|
|||
import { NoContent } from 'App/components/ui';
|
||||
import { NoContent } from 'UI';
|
||||
import { useStore } from 'App/mstore';
|
||||
import { observer } from 'mobx-react-lite';
|
||||
import React from 'react';
|
||||
import InsightItem from './InsightItem';
|
||||
import { NO_METRIC_DATA } from 'App/constants/messages';
|
||||
|
||||
interface Props {}
|
||||
function InsightsCard(props: Props) {
|
||||
|
|
@ -23,7 +24,11 @@ function InsightsCard(props: Props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<NoContent>
|
||||
<NoContent
|
||||
show={metric.data.issues.length === 0}
|
||||
title={NO_METRIC_DATA}
|
||||
style={{ padding: '100px 0' }}
|
||||
>
|
||||
{metric.data.issues.map((item: any) => (
|
||||
<InsightItem item={item} onClick={clickHanddler} />
|
||||
))}
|
||||
|
|
|
|||
|
|
@ -18,10 +18,6 @@ import {
|
|||
TABLE,
|
||||
CLICKMAP,
|
||||
FUNNEL,
|
||||
ERRORS,
|
||||
RESOURCE_MONITORING,
|
||||
PERFORMANCE,
|
||||
WEB_VITALS,
|
||||
INSIGHTS,
|
||||
} from 'App/constants/card';
|
||||
|
||||
|
|
|
|||
|
|
@ -99,6 +99,7 @@ export default class Widget {
|
|||
this.predefinedKey = json.predefinedKey;
|
||||
this.category = json.category;
|
||||
this.thumbnail = json.thumbnail;
|
||||
this.isPublic = json.isPublic;
|
||||
|
||||
if (period) {
|
||||
this.period = period;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue