ui and bug fixers 29/09

This commit is contained in:
2026-09-29 14:49:11 +05:30
parent d24072e20a
commit b2646c6cb3
85 changed files with 30050 additions and 750 deletions
@@ -7,6 +7,7 @@ const badgeSize = "h-6 w-28 justify-center px-2.5 py-1 text-sm"
const warning = "bg-warning/10 text-warning border-transparent"
const success = "bg-success/10 text-success border-transparent"
const destructive = "bg-destructive/10 text-destructive border-transparent"
const info = "bg-info/10 text-info border-transparent"
export function TransferStatusBadge({ status }: { status: TransferStatus }) {
const tone = status === "Received" ? success : status === "Closed" ? destructive : warning
@@ -18,7 +19,7 @@ export function TransferStatusBadge({ status }: { status: TransferStatus }) {
}
export function CountStatusBadge({ status }: { status: CountStatus }) {
const tone = status === "Posted" ? success : warning
const tone = status === "Posted" ? success : status === "Counted" ? info : warning
return (
<Badge variant="outline" className={`${badgeSize} ${tone}`}>
{status}