feat: add monitor list warning color

This commit is contained in:
moonrailgun 2023-10-15 01:35:53 +08:00
parent 116c69b4ec
commit 52455f4ea2

View File

@ -75,9 +75,10 @@ export const MonitorList: React.FC = React.memo(() => {
> >
<div> <div>
<span <span
className={ className={clsx(
'bg-green-400 min-w-[62px] p-0.5 rounded-full text-white inline-block text-center' 'min-w-[62px] p-0.5 rounded-full text-white inline-block text-center',
} upPercent === 100 ? 'bg-green-400' : 'bg-amber-400'
)}
> >
{/* {monitor.monthOnlineRate * 100}% */} {/* {monitor.monthOnlineRate * 100}% */}
{upPercent}% {upPercent}%