change(ui) - cards - filters - removed logs and unused
This commit is contained in:
parent
eb4c07a876
commit
4b254b3752
2 changed files with 1 additions and 14 deletions
|
|
@ -2,9 +2,7 @@ import { observer, useObserver } from 'mobx-react-lite';
|
|||
import React, { useEffect, useState } from 'react';
|
||||
import { NoContent, Pagination } from 'UI';
|
||||
import { useStore } from 'App/mstore';
|
||||
import { filterList } from 'App/utils';
|
||||
import { sliceListPerPage } from 'App/utils';
|
||||
import Widget from 'App/mstore/types/widget';
|
||||
import GridView from './GridView';
|
||||
import ListView from './ListView';
|
||||
import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG';
|
||||
|
|
@ -21,7 +19,6 @@ function MetricsList({
|
|||
const metricsSearch = metricStore.metricsSearch;
|
||||
const listView = useObserver(() => metricStore.listView);
|
||||
const [selectedMetrics, setSelectedMetrics] = useState<any>([]);
|
||||
// const sortBy = useObserver(() => metricStore.sort.by);
|
||||
|
||||
useEffect(() => {
|
||||
metricStore.fetchList();
|
||||
|
|
@ -42,16 +39,6 @@ function MetricsList({
|
|||
}
|
||||
};
|
||||
|
||||
// const filterByDashboard = (item: Widget, searchRE: RegExp) => {
|
||||
// const dashboardsStr = item.dashboards.map((d: any) => d.name).join(' ');
|
||||
// return searchRE.test(dashboardsStr);
|
||||
// };
|
||||
|
||||
// const list =
|
||||
// metricsSearch !== ''
|
||||
// ? filterList(metrics, metricsSearch, ['name', 'metricType', 'owner'], filterByDashboard)
|
||||
// : metrics;
|
||||
|
||||
const lenth = cards.length;
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import {
|
|||
INSIGHTS,
|
||||
} from 'App/constants/card';
|
||||
import { clickmapFilter } from 'App/types/filter/newFilter';
|
||||
import { filterList, getRE } from 'App/utils';
|
||||
import { getRE } from 'App/utils';
|
||||
|
||||
interface MetricFilter {
|
||||
query?: string;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue