Skip to content

Commit

Permalink
fix: remove unnecessary lines to SPA
Browse files Browse the repository at this point in the history
  • Loading branch information
danilogomes committed Oct 30, 2023
1 parent 07b0a7c commit 224ee47
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions app/spa/src/pages/Teams/TeamDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 224ee47

Please sign in to comment.