show completed tests on calendar
This commit is contained in:
@@ -47,7 +47,8 @@ function formatConfig(config) {
|
||||
}
|
||||
|
||||
export default function TestCard({ test }) {
|
||||
const style = STATUS_STYLES[test.status] ?? STATUS_STYLES.pending
|
||||
const normalizedStatus = String(test?.status ?? 'pending').trim().toLowerCase()
|
||||
const style = STATUS_STYLES[normalizedStatus] ?? STATUS_STYLES.pending
|
||||
const deviceAccentClass = getDeviceAccentClass(test.device)
|
||||
const cardRef = useRef(null)
|
||||
const [tooltipPos, setTooltipPos] = useState({ top: '0px', left: '0px' })
|
||||
|
||||
Reference in New Issue
Block a user