Skip to content

Commit

Permalink
remove 717 references
Browse files Browse the repository at this point in the history
  • Loading branch information
fdelemarre committed Sep 16, 2024
1 parent 78d9154 commit e70fc94
Showing 1 changed file with 2 additions and 44 deletions.
46 changes: 2 additions & 44 deletions src/webapp/pages/dashboard/DashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Section } from "../../components/section/Section";
import { StatisticTable } from "../../components/table/statistic-table/StatisticTable";
import { usePerformanceOverview } from "./usePerformanceOverview";
import { useDiseasesTotal } from "./useDiseasesTotal";
import { StatsCard, StatsCardProps } from "../../components/stats-card/StatsCard";
import { StatsCard } from "../../components/stats-card/StatsCard";
import styled from "styled-components";
import { MultipleSelector } from "../../components/selector/MultipleSelector";
import { Id } from "@eyeseetea/d2-api";
Expand Down Expand Up @@ -36,32 +36,6 @@ export const DashboardPage: React.FC = React.memo(() => {
goTo(RouteName.EVENT_TRACKER, { id });
};

const performances: StatsCardProps[] = [
{
title: "Detection",
stat: "57",
pretitle: "4 events",
color: "green",
},
{
title: "Notification",
stat: "43",
pretitle: "3 events",
color: "red",
},
{
title: "Response",
stat: "57",
pretitle: "4 events",
color: "green",
},
{
title: "All targets",
stat: "14",
pretitle: "1 events",
color: "grey",
},
];
return (
<Layout title={i18n.t("Dashboard")} showCreateEvent>
<Section title={i18n.t("Respond, alert, watch")}>
Expand All @@ -87,7 +61,6 @@ export const DashboardPage: React.FC = React.memo(() => {
onChange={(dates: string[]) => setFilters({ ...filters, duration: dates })}
placeholder={i18n.t("Duration")}
/>
{JSON.stringify(filters)}
</Container>
<GridWrapper>
{diseasesTotal &&
Expand All @@ -101,22 +74,7 @@ export const DashboardPage: React.FC = React.memo(() => {
))}
</GridWrapper>
</Section>
<Section title={i18n.t("7-1-7 performance")}>
<GridWrapper>
{performances &&
performances.map((per, index) => (
<StatsCard
key={index}
stat={per.stat}
title={per.title}
pretitle={per.pretitle}
color={per.color}
fillParent
isPercentage
/>
))}
</GridWrapper>
</Section>
<Section title={i18n.t("7-1-7 performance")}>TBD</Section>
<Section title={i18n.t("Performance overview")}>
<StatisticTableWrapper>
<StatisticTable
Expand Down

0 comments on commit e70fc94

Please sign in to comment.