Skip to content

Commit

Permalink
add tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-justin committed Sep 17, 2024
1 parent edd28d6 commit 0e9f1e2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/pages/Admin/Charity/Dashboard/Summary.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Icon from "components/Icon";
import { Arrow, Content, Tooltip } from "components/Tooltip";
import { humanize } from "helpers";
import type { Allocation, BalanceMovement, EndowmentBalances } from "types/aws";

Expand Down Expand Up @@ -30,7 +31,19 @@ export function Summary({ classes = "", ...props }: Props) {

return (
<div className={`${classes} p-4 rounded border border-gray-l4`}>
<h4 className="mb-6">Ending balances</h4>
<h4 className="mb-6 flex items-center gap-2">
<span>Ending balances</span>
<Tooltip
tip={
<Content className="bg-navy-d4 text-gray-l2 text-xs p-2 rounded">
Doesn't reflect investment performance
<Arrow />
</Content>
}
>
<Icon type="Info" className="text-navy-l1" size={15} />
</Tooltip>
</h4>
<div className="grid grid-cols-[auto_auto_auto_1fr]">
<Balance
title="Savings"
Expand Down

0 comments on commit 0e9f1e2

Please sign in to comment.