dovršen rendering homepage-a

This commit is contained in:
2024-01-04 14:46:31 +01:00
parent 496814d039
commit f11987dd3a
8 changed files with 102 additions and 72 deletions

View File

@@ -2,9 +2,8 @@ import { FC } from "react"
import { Bill } from "../lib/db-types"
export interface BillBadgeProps {
bill: Bill,
// onClick:()=>void,
bill: Bill
};
export const BillBadge:FC<BillBadgeProps> = ({bill: { name, paid }}) =>
<div className={`badge badge-lg badge-${paid?"success":"neutral"} cursor-pointer`}>{name}</div>
<div className={`badge badge-lg ${paid} ${paid?"badge-success":" badge-outline"} cursor-pointer`}>{name}</div>