Refactor
This commit is contained in:
@@ -9,9 +9,9 @@ import { NonNullStats } from "@/lib/schema/player"
|
||||
import { ChevronDown, ChevronUp } from "lucide-react"
|
||||
import { useEffect, useRef, useState } from "react"
|
||||
import CollapsedStats from "../../_components/CollapsedStats"
|
||||
import { BedwarsLevel, BedwarsProgress } from "./bedwars-components"
|
||||
import BedwarsStatTable from "./bedwars-table"
|
||||
import { BedwarsLevel, BedwarsProgress } from "./components"
|
||||
import BedwarsGeneralStats from "./stats"
|
||||
import BedwarsStatTable from "./table"
|
||||
|
||||
export default function BedwarsStats({ stats }: { stats: NonNullStats["Bedwars"] }) {
|
||||
const ref = useRef<HTMLDivElement>(null)
|
||||
|
||||
@@ -2,7 +2,7 @@ import { formatNumber } from "@/lib/formatters"
|
||||
import { getLatestRoom, getWalletMax } from "@/lib/hypixel/bedwars"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import { BasicStat, Stat } from "../../_components/Stats"
|
||||
import { BedWarsPrestige } from "./bedwars-components"
|
||||
import { BedWarsPrestige } from "./components"
|
||||
|
||||
export default function BedwarsGeneralStats(
|
||||
{ statsChecked, level, percent, kd, fkd, bbl, wl }: {
|
||||
|
||||
@@ -10,7 +10,7 @@ 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 { SkywarsLevel, SkywarsProgress } from "./components"
|
||||
import SkyWarsGeneralStats from "./stats"
|
||||
|
||||
export default function SkyWarsStats({ stats }: { stats: NonNullStats["SkyWars"] }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { formatNumber } from "@/lib/formatters"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import { BasicStat, Stat } from "../../_components/Stats"
|
||||
import { SkywarsPrestige } from "./skywars-components"
|
||||
import { SkywarsPrestige } from "./components"
|
||||
|
||||
export default function SkyWarsGeneralStats({
|
||||
statsChecked,
|
||||
|
||||
Reference in New Issue
Block a user