Skip to content

Commit

Permalink
Merge pull request #406 from MethSarcus/develop
Browse files Browse the repository at this point in the history
Added rival stats and a new stats group
  • Loading branch information
MethSarcus authored Dec 1, 2024
2 parents 3f2032e + f8a1a74 commit 6184f7a
Show file tree
Hide file tree
Showing 12 changed files with 638 additions and 318 deletions.
6 changes: 6 additions & 0 deletions app/league/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import LeagueWeeklyPointsLineChart from '../../../components/charts/line/LineCha
import TeamRadarChart from '../../../components/charts/TeamRadarChart'
import HomeStatGroup from '../../../components/groups/stats/HomeStatGroup'
import LeagueNotableWeeksStatGroup from '../../../components/groups/stats/LeagueWeekGroup'
import SuperStatsGroup from '../../../components/groups/stats/SuperStatsGroup'
import LeagueOverviewDataTable from '../../../components/tables/LeagueOverviewDatatable'
import { LeagueContext } from '../../../contexts/LeagueContext'

Expand All @@ -20,12 +21,14 @@ const LeaguePage = () => {

const desktopGrid = `"header header header"
"leagueTable weekStats weekStats"
"super_stats super_stats super_stats"
"pfTable pfLineChart pfLineChart"
"radarChart pfBarChart pfBarChart"`

const mobileGrid = `"header"
"leagueTable"
"weekStats"
"super_stats"
"pfTable"
"pfBarChart"
"pfLineChart"
Expand Down Expand Up @@ -60,6 +63,9 @@ const LeaguePage = () => {
<GridItem area={'leagueTable'}>
<HomeStatGroup league={context} />
</GridItem>
<GridItem area={'super_stats'}>
<SuperStatsGroup league={context} />
</GridItem>
<GridItem overflowX={'hidden'} area={'pfTable'} borderRadius={4}>
<LeagueOverviewDataTable league={context} />
</GridItem>
Expand Down
2 changes: 2 additions & 0 deletions app/league/[slug]/team/[teamID]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ import LeagueMember from '../../../../../classes/custom/LeagueMember'
import MatchupInterface from '../../../../../classes/custom/MatchupInterface'
import {Week} from '../../../../../classes/custom/Week'
import MatchupPreview from '../../../../../components/cards/MatchupPreview'
import GenericStatCard from '../../../../../components/cards/statcards/GenericStatCard'
import TeamCardWithTrendingGraph from '../../../../../components/cards/TeamCardWithTrendingGraph'
import TeamPagePointsChart from '../../../../../components/charts/bar/TeamPagePointsChart'
import TeamPagePointsChartMobile from '../../../../../components/charts/bar/TeamPagePointsChartMobile'
import TeamPageRadarChart from '../../../../../components/charts/team_charts/TeamPageRadarChart'
import RivalsGroup from '../../../../../components/groups/stats/RivalsStatGroup'
import TeamPlayerStatGroup from '../../../../../components/groups/stats/TeamPlayerStatGroup'
import TeamStatGroup from '../../../../../components/groups/stats/TeamStatGroup'
import WeeklyTeamStatGroup from '../../../../../components/groups/stats/WeeklyTeamStatGroup'
Expand Down
Loading

0 comments on commit 6184f7a

Please sign in to comment.