Fixed bug
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { formatNumber } from "@/lib/formatters"
|
import { formatNumber } from "@/lib/formatters"
|
||||||
import { getWoolGamesPrestige, getWoolGamesXPForLevel } from "@/lib/hypixel/woolgames/general"
|
import { getWoolGamesPrestige, getWoolGamesXPForLevel } from "@/lib/hypixel/woolgames/general"
|
||||||
|
import { cn } from "@/lib/utils"
|
||||||
import { GenericProgress } from "../../_components/GenericProgress"
|
import { GenericProgress } from "../../_components/GenericProgress"
|
||||||
|
|
||||||
export default function WoolGamesProgress({ xp, level }: { xp: number, level: number }) {
|
export default function WoolGamesProgress({ xp, level }: { xp: number, level: number }) {
|
||||||
@@ -17,7 +18,7 @@ export default function WoolGamesProgress({ xp, level }: { xp: number, level: nu
|
|||||||
tooltipId="woolgamesprogress"
|
tooltipId="woolgamesprogress"
|
||||||
tooltipContent={`${xpProgress}/${ceilingXp} XP`}
|
tooltipContent={`${xpProgress}/${ceilingXp} XP`}
|
||||||
percent={percent}
|
percent={percent}
|
||||||
className="bg-mc-red"
|
className={cn(`bg-mc-${pres.color}`)}
|
||||||
/>
|
/>
|
||||||
<p className={`text-mc-${next.color}`}>{Math.floor(level) + 1}</p>
|
<p className={`text-mc-${next.color}`}>{Math.floor(level) + 1}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user