Updated stats
This commit is contained in:
@@ -6,14 +6,14 @@ import { Separator } from "@/components/ui/separator"
|
||||
import { formatNumber } from "@/lib/formatters"
|
||||
import { getProgress } from "@/lib/hypixel/general"
|
||||
import { getSkywarsLevel, getSkywarsXpForLevel } from "@/lib/hypixel/skyWarsLevel"
|
||||
import { Player } from "@/lib/schema/player"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import { ChevronDown, ChevronUp } from "lucide-react"
|
||||
import { useEffect, useRef, useState } from "react"
|
||||
import CollapsedStats from "../../_components/CollapsedStats"
|
||||
import { SkywarsLevel, SkywarsProgress } from "./skywars-components"
|
||||
import SkyWarsGeneralStats from "./stats"
|
||||
|
||||
export default function SkyWarsStats({ stats }: { stats: Player["player"]["stats"]["SkyWars"] }) {
|
||||
export default function SkyWarsStats({ stats }: { stats: NonNullStats["SkyWars"] }) {
|
||||
const ref = useRef<HTMLDivElement>(null)
|
||||
const [opened, setOpened] = useState(false)
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { formatNumber } from "@/lib/formatters"
|
||||
import { Player } from "@/lib/schema/player"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import { BasicStat, Stat } from "../../_components/Stats"
|
||||
import { SkywarsPrestige } from "./skywars-components"
|
||||
|
||||
@@ -7,7 +7,7 @@ export default function SkyWarsGeneralStats({
|
||||
statsChecked,
|
||||
level
|
||||
}: {
|
||||
statsChecked: Player["player"]["stats"]["SkyWars"]
|
||||
statsChecked: NonNullStats["SkyWars"]
|
||||
level: number
|
||||
}) {
|
||||
const stats = statsChecked!
|
||||
|
||||
Reference in New Issue
Block a user