diff --git a/frontend/app/components/Dashboard/components/DashboardMetricSelection/DashboardMetricSelection.tsx b/frontend/app/components/Dashboard/components/DashboardMetricSelection/DashboardMetricSelection.tsx index a999e0358..400654df2 100644 --- a/frontend/app/components/Dashboard/components/DashboardMetricSelection/DashboardMetricSelection.tsx +++ b/frontend/app/components/Dashboard/components/DashboardMetricSelection/DashboardMetricSelection.tsx @@ -4,7 +4,7 @@ import { useObserver } from 'mobx-react-lite'; import cn from 'classnames'; import { useStore } from 'App/mstore'; -function WidgetCategoryItem({ category, isSelected, onClick, selectedWidgetIds, unSelectCategory }) { +function WidgetCategoryItem({ category, isSelected, onClick, selectedWidgetIds }) { const selectedCategoryWidgetsCount = useObserver(() => { return category.widgets.filter(widget => selectedWidgetIds.includes(widget.metricId)).length; }); @@ -14,10 +14,9 @@ function WidgetCategoryItem({ category, isSelected, onClick, selectedWidgetIds, onClick={() => onClick(category)} >
{category.name}
-
{category.description}
+
{category.description}
{selectedCategoryWidgetsCount > 0 && (
- {/* unSelectCategory(category)} /> */} {`Selected ${selectedCategoryWidgetsCount} of ${category.widgets.length}`}
)} @@ -69,7 +68,7 @@ function DashboardMetricSelection(props) {
- Showing past 7 days data for visual clue + Past 7 days data
-
+
{activeCategory && widgetCategories.map((category, index) => )}