diff --git a/src/pages/Admin/Charity/Dashboard/Schedule/AllocationSlider.tsx b/src/pages/Admin/Charity/Dashboard/Schedule/AllocationSlider.tsx index e73bafd972..5f851c3a1d 100644 --- a/src/pages/Admin/Charity/Dashboard/Schedule/AllocationSlider.tsx +++ b/src/pages/Admin/Charity/Dashboard/Schedule/AllocationSlider.tsx @@ -3,7 +3,7 @@ import leaf from "assets/icons/leaf.png"; import sendMoney from "assets/icons/send-money.png"; import Icon from "components/Icon"; import Image from "components/Image"; -import { Arrow, Content, Tooltip } from "components/Tooltip"; + import { humanize } from "helpers"; import type { ReactNode } from "react"; import type { Allocation } from "types/aws"; @@ -14,6 +14,7 @@ interface Props { /** cash, liq, lock */ value: Allocation; onChange: (value: Allocation) => void; + classes?: string; } export type Boundary = [number, number]; @@ -35,13 +36,14 @@ export function AllocationSlider({ value, onChange, amount, + classes = "", }: Props) { const boundary = toBoundary(value); return ( -
{props.pct}%
-+
$ {humanize(num)}
- - {isLessThanMin ? ( -$ {humanize(props.amount)}