From 224ee4711fd8d1b9c67720691121234ee60f6d2d Mon Sep 17 00:00:00 2001 From: Danilo Gomes Date: Mon, 30 Oct 2023 17:44:56 -0300 Subject: [PATCH] fix: remove unnecessary lines to SPA --- app/spa/src/pages/Teams/TeamDashboard.tsx | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/app/spa/src/pages/Teams/TeamDashboard.tsx b/app/spa/src/pages/Teams/TeamDashboard.tsx index 6916b8b6d..ba2ea02a3 100644 --- a/app/spa/src/pages/Teams/TeamDashboard.tsx +++ b/app/spa/src/pages/Teams/TeamDashboard.tsx @@ -26,9 +26,8 @@ import { MeContext } from "../../contexts/MeContext" import { formatDate, secondsToDays, secondsToReadbleDate } from "../../lib/date" import { Demand } from "../../modules/demand/demand.types" import TeamBasicPage from "../../modules/team/components/TeamBasicPage" -import { Membership, Team } from "../../modules/team/team.types" +import { Team } from "../../modules/team/team.types" import MemberGeneralInfo from "./MemberGeneralInfo" -import TeamMembers from "../TeamMembers/TeamMembers" const TEAM_DASHBOARD_QUERY = gql` @@ -206,18 +205,6 @@ const TeamDashboard = () => { }, ] - const lineChartData = [ - { id: team?.name || "", - data:team?.memberships? team?.memberships?.map( - ({ teamMemberName, hoursPerMonth }) => { - return { - x: String(teamMemberName || ''), - y: String(hoursPerMonth || 0), - } - } - -) :[] }] - const lineChartMembershipData = team?.memberships? team?.memberships?.map((membership)=> { const seila = { id: membership?.teamMemberName? membership.teamMemberName : "", data: membership?.teamMembersHourlyRateList? membership?.teamMembersHourlyRateList?.map(