mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 21:26:29 +00:00
update
This commit is contained in:
@@ -3,10 +3,7 @@ import { Badge, STATUS_BADGE_MAP } from "@/components/ui/badge"
|
||||
export default function BadgeStatus({ status, className }: { status: string, className?: string }) { // e.g. status = "UAT"
|
||||
return (
|
||||
<Badge variant={STATUS_BADGE_MAP[status?.toLowerCase()] || "default"} className={className}>
|
||||
{status?.toLowerCase()
|
||||
.split(' ')
|
||||
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
|
||||
.join(' ')}
|
||||
{status}
|
||||
</Badge>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user