mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 03:45:06 +03:00
Fix: change the colour of the 'failed' badge for the cron UI (#32533)
* Fix: change the colour of the 'failed' badge for the cron UI * simplify implementation --------- Co-authored-by: Alaister Young <a@alaisteryoung.com>
This commit is contained in:
1 parent
4f6b2be178
commit
91371a3d8f
1 file changed
+4
-1
@@ -146,7 +146,10 @@ export const CronJobCard = ({ job, onEditCronJob, onDeleteCronJob }: CronJobCard
|
||||
className="font-sans text-sm"
|
||||
/>
|
||||
{data?.status && (
|
||||
<Badge variant="success" className="capitalize ml-2">
|
||||
<Badge
|
||||
variant={data.status === 'failed' ? 'destructive' : 'success'}
|
||||
className="capitalize ml-2"
|
||||
>
|
||||
{data.status}
|
||||
</Badge>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user