Update to named import
This commit is contained in:
@@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters"
|
||||
import { getArcadeTotalWins } from "@/lib/hypixel/arcade/general"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import { BasicStat } from "../../_components/Stats"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import ArcadeOtherStats from "./other"
|
||||
import { ArcadeMiniWallsStats, ArcadePixelPartyStats, ArcadeZombieStats } from "./stats"
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters"
|
||||
import { getBedwarsLevelForExp, getTotalBedwarsExpForLevel } from "@/lib/hypixel/bedwars/level"
|
||||
import { devide, getProgress } from "@/lib/hypixel/general"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import { BedwarsLevel, BedwarsProgress } from "./components"
|
||||
import BedwarsGeneralStats from "./stats"
|
||||
import BedwarsStatTable from "./table"
|
||||
|
||||
@@ -4,7 +4,7 @@ import { getBlitzMostPlayedKit } from "@/lib/hypixel/blitz/general"
|
||||
import { devide } from "@/lib/hypixel/general"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import { cn } from "@/lib/utils"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import BlitzGeneralStats from "./stats"
|
||||
import { BlitzKitStatsTable, BlitzModeStatsTable } from "./table"
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters"
|
||||
import { getBuildBattleRank } from "@/lib/hypixel/build-battle/general"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import { cn } from "@/lib/utils"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import BuildBattleTitleProgress from "./progress"
|
||||
import BuildBattleGeneralStats from "./stats"
|
||||
import BuildBattleStatsTable from "./table"
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Separator } from "@/components/ui/separator"
|
||||
import { formatNumber } from "@/lib/formatters"
|
||||
import { devide } from "@/lib/hypixel/general"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import { ArenaBrawlGeneralStats } from "./stats"
|
||||
import { ArenaBrawlModeStatsTable } from "./table"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Separator } from "@/components/ui/separator"
|
||||
import { formatNumber } from "@/lib/formatters"
|
||||
import { devide } from "@/lib/hypixel/general"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import { PaintballGeneralStats } from "./stats"
|
||||
|
||||
export default function PaintballStats({ stats }: { stats: NonNullStats["Paintball"] }) {
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Separator } from "@/components/ui/separator"
|
||||
import { formatNumber } from "@/lib/formatters"
|
||||
import { devide } from "@/lib/hypixel/general"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import { VampireZGeneralStats } from "./stats"
|
||||
|
||||
export default function VampireZStats({ stats }: { stats: NonNullStats["VampireZ"] }) {
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Separator } from "@/components/ui/separator"
|
||||
import { formatNumber } from "@/lib/formatters"
|
||||
import { devide } from "@/lib/hypixel/general"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import { WallsGeneralStats } from "./stats"
|
||||
|
||||
export default function WallsStats({ stats }: { stats: NonNullStats["Walls"] }) {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters"
|
||||
import { getCopsAndCrimsScoreColor } from "@/lib/hypixel/copsandcrims/general"
|
||||
import { devide } from "@/lib/hypixel/general"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import CopsAndCrimsGeneralStats from "./stats"
|
||||
import CopsAndCrimsStatTable from "./table"
|
||||
import CopsAndCrimsWeaponStats from "./weapons"
|
||||
|
||||
@@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters"
|
||||
import { getDuelsAllDivisions, getDuelsMostPlayed } from "@/lib/hypixel/duels/general"
|
||||
import { devide, romanize } from "@/lib/hypixel/general"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import DuelsGeneralStats from "./stats"
|
||||
import DuelsStatsTable from "./table"
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import { devide } from "@/lib/hypixel/general"
|
||||
import { getMegaWallsDifficultyColor, getMegawallsMostPlayed } from "@/lib/hypixel/megawalls/general"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import { cn } from "@/lib/utils"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import MegaWallsGeneralStats from "./stats"
|
||||
import { MegaWallsClassesTable, MegaWallsModesTable } from "./table"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Separator } from "@/components/ui/separator"
|
||||
import { formatNumber } from "@/lib/formatters"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import MurderMysteryInfectionStats from "./infection"
|
||||
import MurderMysteryGeneralStats from "./stats"
|
||||
import MurderMysteryStatTable from "./table"
|
||||
|
||||
@@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters"
|
||||
import { devide } from "@/lib/hypixel/general"
|
||||
import { getPitPrestige } from "@/lib/hypixel/pit/general"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import PitLevel from "./level"
|
||||
import PitProgress from "./progress"
|
||||
import PitGeneralStats from "./stats"
|
||||
|
||||
@@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters"
|
||||
import { devide, getProgress } from "@/lib/hypixel/general"
|
||||
import { getSkywarsLevel, getSkywarsXpForLevel } from "@/lib/hypixel/skywars/level"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import { SkywarsAngelOfDeath, SkywarsHeads, SkywarsLevel, SkywarsProgress, SkywarsShardProgress } from "./components"
|
||||
import SkyWarsGeneralStats from "./stats"
|
||||
import SkywarsStatTable from "./table"
|
||||
|
||||
@@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters"
|
||||
import { devide } from "@/lib/hypixel/general"
|
||||
import { getSmashHerosDifficultyColor, getSmashHerosMostPlayedHero } from "@/lib/hypixel/smashhero/general"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import SmashHerosGeneralStats from "./stats"
|
||||
import { SmashHerosHeroTable, SmashHerosModeTable } from "./table"
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters"
|
||||
import { devide } from "@/lib/hypixel/general"
|
||||
import { getSpeedUHCStar } from "@/lib/hypixel/speeduhc/general"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import SpeedUHCProgress from "./progress"
|
||||
import SpeedUHCGeneralStats from "./stats"
|
||||
import { SpeedUHCMasteryStatsTable, SpeedUHCModeStatsTable } from "./table"
|
||||
|
||||
@@ -5,7 +5,7 @@ import { CircleSlash } from "lucide-react"
|
||||
import { ReactNode } from "react"
|
||||
import CollapsedStats from "../_components/CollapsedStats"
|
||||
|
||||
export default function GeneralStats(
|
||||
export function GeneralStats(
|
||||
{ id, title, children, collapsedStats, className }: {
|
||||
id: string
|
||||
title: string
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Separator } from "@/components/ui/separator"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import TNTGamesGeneralStats from "./stats"
|
||||
import TNTGamesWizardsStats from "./wizards"
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import { devide } from "@/lib/hypixel/general"
|
||||
import { getUHCStatsCombined } from "@/lib/hypixel/uhc/general"
|
||||
import { getUhcStarValue } from "@/lib/hypixel/uhc/level"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import UHCProgress from "./progress"
|
||||
import UHCGeneralStats from "./stats"
|
||||
import UHCStatTable from "./table"
|
||||
|
||||
@@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters"
|
||||
import { devide } from "@/lib/hypixel/general"
|
||||
import { getWarlordsLosses, getWarlordsMostPlayedClass } from "@/lib/hypixel/warlords/general"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import { WarlordsWeaponsBar } from "./client"
|
||||
import WarlordsGeneralStats from "./stats"
|
||||
import { WarlordsClassStatsTable, WarlordsModeStatsTable } from "./table"
|
||||
|
||||
@@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters"
|
||||
import { getWoolGamesLevel, getWoolGamesPrestige, getWoolGamesPretigeIcon } from "@/lib/hypixel/woolgames/general"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import Multicolored from "../../_components/Multicolored"
|
||||
import GeneralStats from "../stats-components"
|
||||
import { GeneralStats } from "../stats-components"
|
||||
import { WoolGamesCaptureTheWool, WoolGamesSheepWars, WoolGamesWoolWars } from "./modes"
|
||||
import WoolGamesProgress from "./progress"
|
||||
import WoolGamesGeneralStats from "./stats"
|
||||
|
||||
Reference in New Issue
Block a user