Skip to content

Commit

Permalink
♻️ chore: update text
Browse files Browse the repository at this point in the history
  • Loading branch information
yunsii committed Mar 22, 2024
1 parent 6f6f342 commit bf6c12c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/index/components/MonitorPanel/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { cls } from 'tagged-classnames-free'
import React from 'react'

import type { DataV1 } from '#src/worker/_helpers/store'
import type { Monitor } from '#src/types'
Expand Down Expand Up @@ -173,7 +174,7 @@ const MonitorPanel: React.FC<IMonitorPanelProps> = (props) => {

let color = cls`bg-gray-300`
let textColor = cls`text-gray-300`
let statusStr: string | null = null
let statusStr: React.ReactNode = null

switch (renderStatus) {
case 'all-good':
Expand All @@ -189,7 +190,7 @@ const MonitorPanel: React.FC<IMonitorPanelProps> = (props) => {
case 'latest-incident':
color = cls`bg-red-500`
textColor = cls`text-red-500`
statusStr = `Latest incident`
statusStr = `${targetDateChecksItem!.fails} incident(s)`
break
case 'has-incident':
color = cls`bg-yellow-500`
Expand Down

0 comments on commit bf6c12c

Please sign in to comment.