Fix draft board page.

This commit is contained in:
Chris Parsons 2026-04-19 21:23:21 -07:00
parent 272110a934
commit a9c01fb66e

View file

@ -66,8 +66,8 @@ function DraftPickCell({
children, children,
...rest ...rest
}, ref) { }, ref) {
const showCorona = state === "picked" || (state === "upcoming" && !!coronaState);
const isCurrent = state === "current"; const isCurrent = state === "current";
const showCorona = !isCurrent;
let currentLabel = "On The Clock"; let currentLabel = "On The Clock";
if (seasonStatus === "pre_draft") { if (seasonStatus === "pre_draft") {
@ -87,18 +87,23 @@ function DraftPickCell({
> >
{isCurrent ? ( {isCurrent ? (
<div className="absolute inset-0 rounded-lg [background:linear-gradient(to_bottom,#adf661,#2ce1c1)] animate-pulse-gradient" /> <div className="absolute inset-0 rounded-lg [background:linear-gradient(to_bottom,#adf661,#2ce1c1)] animate-pulse-gradient" />
) : showCorona && coronaState ? ( ) : coronaState ? (
<div <div
className="absolute top-0.5 bottom-0.5 left-0 right-0 rounded-lg" className="absolute top-0.5 bottom-0.5 left-0 right-0 rounded-lg"
style={getCoronaStyle(coronaState)} style={getCoronaStyle(coronaState)}
/> />
) : showCorona ? ( ) : state === "picked" ? (
<div <div
className={cn( className={cn(
"absolute top-0.5 bottom-0.5 left-0 right-0 rounded-lg", "absolute top-0.5 bottom-0.5 left-0 right-0 rounded-lg",
coronaClasses[corona], coronaClasses[corona],
)} )}
/> />
) : state === "upcoming" ? (
<div
className="absolute top-0.5 bottom-0.5 left-0 right-0 rounded-lg"
style={{ background: "rgba(255, 255, 255, 0.08)" }}
/>
) : null} ) : null}
<div <div
className={cn( className={cn(
@ -106,7 +111,7 @@ function DraftPickCell({
(showCorona || isCurrent) && "mr-1", (showCorona || isCurrent) && "mr-1",
isCurrent isCurrent
? "bg-muted/80 border-transparent" ? "bg-muted/80 border-transparent"
: state === "picked" || (state === "upcoming" && showCorona) : showCorona
? "bg-muted border-transparent" ? "bg-muted border-transparent"
: "border-border bg-card", : "border-border bg-card",
)} )}