mirror of
https://github.com/skidoodle/budgetable.git
synced 2025-02-15 03:39:14 +01:00
i forgor
This commit is contained in:
parent
bcfa0f92a6
commit
dedb1c0628
16 changed files with 316 additions and 239 deletions
|
@ -5,9 +5,9 @@ interface StatusBadgeProps {
|
|||
toggleStatus: () => void;
|
||||
}
|
||||
|
||||
const StatusBadge: React.FC<StatusBadgeProps> = ({ status, toggleStatus }) => (
|
||||
const StatusBadge = ({ status, toggleStatus }: StatusBadgeProps) => (
|
||||
<Badge
|
||||
variant={status === "Paid" ? "destructive" : "secondary"}
|
||||
variant={status === "Paid" ? "paid" : "unpaid"}
|
||||
className="cursor-pointer"
|
||||
onClick={toggleStatus}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue