File tree Expand file tree Collapse file tree
apps/webapp/app/components/queues Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,13 +62,16 @@ export function QueuePauseResumeButton({
6262 < Button
6363 type = "button"
6464 variant = { variant }
65- className = {
66- iconOnly
67- ? queue . paused
65+ className = { cn (
66+ iconOnly &&
67+ ( queue . paused
6868 ? "system:border-transparent system:bg-success system:transition system:group-hover/button:bg-success system:group-hover/button:brightness-90"
69- : "system:border-transparent system:bg-warning system:transition system:group-hover/button:bg-warning system:group-hover/button:brightness-90"
70- : undefined
71- }
69+ : "system:border-transparent system:bg-warning system:transition system:group-hover/button:bg-warning system:group-hover/button:brightness-90" ) ,
70+ withQueueName &&
71+ ( queue . paused
72+ ? "border-success/60 text-success [&_span]:text-success hover:border-success"
73+ : "border-warning/60 text-warning [&_span]:text-warning hover:border-warning" )
74+ ) }
7275 LeadingIcon = { queue . paused ? PlayIcon : PauseIcon }
7376 leadingIconClassName = { cn (
7477 queue . paused ? "text-success" : "text-warning" ,
@@ -77,13 +80,6 @@ export function QueuePauseResumeButton({
7780 fullWidth = { fullWidth }
7881 textAlignLeft = { fullWidth }
7982 aria-label = { label }
80- className = {
81- withQueueName
82- ? queue . paused
83- ? "border-success/60 text-success [&_span]:text-success hover:border-success"
84- : "border-warning/60 text-warning [&_span]:text-warning hover:border-warning"
85- : undefined
86- }
8783 >
8884 { iconOnly
8985 ? undefined
You can’t perform that action at this time.
0 commit comments