LocationCard: added visible tooltip

This commit is contained in:
2024-02-17 11:12:12 +01:00
parent a87ab6710c
commit 52c5672662

View File

@@ -32,7 +32,7 @@ export const LocationCard:FC<LocationCardProps> = ({location: { _id, name, yearM
bills.map(bill => <BillBadge key={`${_id}-${bill._id}`} locationId={_id} bill={bill} />) bills.map(bill => <BillBadge key={`${_id}-${bill._id}`} locationId={_id} bill={bill} />)
} }
<Link href={`/bill/${_id}/add`} className="tooltip" data-tip={t("add-bill-button-tooltip")}> <Link href={`/bill/${_id}/add`} className="tooltip" data-tip={t("add-bill-button-tooltip")}>
<PlusCircleIcon className="h-[1em] w-[1em] cursor-pointer text-2xl" /> <PlusCircleIcon className="h-[1em] w-[1em] cursor-pointer text-2xl inline-block" /><span className="ml-1 text-xs ml-[0.2rem]">{t("add-bill-button-tooltip")}</span>
</Link> </Link>
</div> </div>
{ {