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