Skip to content

Commit

Permalink
Merge pull request #375 from MethSarcus/develop
Browse files Browse the repository at this point in the history
Bumped versions fixed charts
  • Loading branch information
MethSarcus authored Sep 4, 2024
2 parents c3b61cb + 2f536d4 commit 7b55933
Show file tree
Hide file tree
Showing 10 changed files with 7,990 additions and 5,288 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 0 additions & 1 deletion app/league/[slug]/ranks/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import {Box, Grid, GridItem, Heading, Skeleton} from '@chakra-ui/react'
import React from 'react'
import {useContext, useState} from 'react'
import WeeklyRankingBumpChart from '../../../../components/charts/BumpChart'
import MemberSkillScatterPlot from '../../../../components/charts/MemberSkillScatterPlot'
import PowerRankingBumpChart from '../../../../components/charts/PowerRankingBumpChart'
import AllPlayRankGroup from '../../../../components/groups/AllPlayRankGroup'
Expand Down
140 changes: 0 additions & 140 deletions components/charts/BumpChart.tsx

This file was deleted.

3 changes: 2 additions & 1 deletion components/charts/MemberSkillScatterPlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ export default function MemberSkillScatterPlot (props: MyProps) {
}
const theme = {
background: isLargerThan800 ? project_colors.surface[1] : "",
textColor: 'white',
text: {fill: project_colors.textTheme.highEmphasis},

}

if (data.length <= 0) return <Spinner />
Expand Down
2 changes: 1 addition & 1 deletion components/charts/bar/DraftValueBarChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface MyProps {

const theme = {
background: 'none',
textColor: 'white',
text: {fill: project_colors.textTheme.highEmphasis}
}

const DraftValueBarChart = (props: MyProps) => {
Expand Down
2 changes: 1 addition & 1 deletion components/charts/line/LineChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const LeagueWeeklyPointsLineChart = (props: MyProps) => {
let data = formatScoresForLineChart(props.league, isOnMobile) as any
const theme = {
background: isOnMobile ? undefined : project_colors.surface[1],
textColor: 'white',
text: {fill: project_colors.textTheme.highEmphasis},
}

const desktopMargin = {top: 20, right: 170, bottom: 50, left: 60}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const RosterPlayerTrendingLineChart = (props: MyProps) => {
if (!props.player || !props.league || !playerScores) return <Spinner />
let data = formatScoresForLineChart(props.player, props.league, playerScores, playerDetails) as any
const theme = {
textColor: 'white',
text: {fill: project_colors.textTheme.highEmphasis},
}

if (data.length <= 0) return <Spinner />
Expand Down
2 changes: 2 additions & 0 deletions components/groups/stats/WeeklyTeamStatGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import {HStack} from '@chakra-ui/react'
import League from '../../../classes/custom/League'
import Matchup from '../../../classes/custom/Matchup'
import {OrdinalStatInfo} from '../../../classes/custom/OrdinalStatInfo'
import GenericStatCard from '../../cards/statcards/GenericStatCard'
import NotableMatchupStatCard from '../../cards/statcards/NotableMatchupStatCard'
import TeamPersonalStatCard from '../../cards/statcards/TeamPersonalStatCard'

interface MyProps {
league?: League
Expand Down
Loading

0 comments on commit 7b55933

Please sign in to comment.