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