diff --git a/web/src/ui/TierSpread.tsx b/web/src/ui/TierSpread.tsx index 50c22c7..e666833 100644 --- a/web/src/ui/TierSpread.tsx +++ b/web/src/ui/TierSpread.tsx @@ -1,8 +1,7 @@ // Map difficulty filters with matching controls for all tiers and individual tiers. -import type { CSSProperties } from "react"; import { classNames } from "./classNames"; import { Link } from "./Link"; -import { tierColor } from "./TierBadge"; +import { TierBadge } from "./TierBadge"; const number = new Intl.NumberFormat("en"); @@ -24,59 +23,57 @@ export function TierSpread({ const total = byTier.reduce((sum, count) => sum + count, untiered); if (total === 0) return null; const tierCount = byTier.length; - const choices = [ - { tier: null, count: total }, - ...byTier.map((count, index) => ({ tier: index + 1, count })), - ]; - return (

Difficulty

- + {untiered > 0 && (

{number.format(untiered)} without a tier