From b4063266a2a956cc23e60e4bbdafd1e872700aca Mon Sep 17 00:00:00 2001 From: ap-justin <89639563+ap-justin@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:12:28 +0800 Subject: [PATCH] update icons --- src/components/Icon/icons.ts | 4 ++++ src/pages/Admin/Charity/Dashboard/Dashboard.tsx | 13 +++++-------- .../Charity/Dashboard/Schedule/AllocationSlider.tsx | 4 ++-- .../Admin/Charity/Dashboard/Schedule/Schedule.tsx | 6 ++---- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/components/Icon/icons.ts b/src/components/Icon/icons.ts index 774b0fd5b0..a2efd7cb8c 100644 --- a/src/components/Icon/icons.ts +++ b/src/components/Icon/icons.ts @@ -46,6 +46,7 @@ import { Minus, Moon, Pencil, + PiggyBank, Plus, Save, Search, @@ -55,6 +56,7 @@ import { Star, StickyNote, Sun, + Timer, TriangleAlert, Undo, University, @@ -110,6 +112,7 @@ export const icons = { Padlock: Lock, Pencil, Picture: Image, + PiggyBank, Plus, Question: CircleHelp, ReligiousOrganization: Church, @@ -119,6 +122,7 @@ export const icons = { Star, StickyNote, Sun, + Timer, Undo, University, Upload: ArrowUpFromLine, diff --git a/src/pages/Admin/Charity/Dashboard/Dashboard.tsx b/src/pages/Admin/Charity/Dashboard/Dashboard.tsx index e0b5184125..af4a11f5e6 100644 --- a/src/pages/Admin/Charity/Dashboard/Dashboard.tsx +++ b/src/pages/Admin/Charity/Dashboard/Dashboard.tsx @@ -1,12 +1,9 @@ import ContentLoader from "components/ContentLoader"; import QueryLoader from "components/QueryLoader"; import { humanize } from "helpers"; -import { BsGraphUpArrow } from "react-icons/bs"; //icon-line-graph-up -import { IoPeople } from "react-icons/io5"; //icon-people -import { LiaPiggyBankSolid } from "react-icons/lia"; //icon-piggy-bank -import { MdOutlineOutput } from "react-icons/md"; //icon-output import { skipToken } from "@reduxjs/toolkit/query"; +import Icon from "components/Icon"; import { useEndowBalanceQuery } from "services/apes"; import type { EndowmentBalances } from "types/aws"; import { useAdminContext } from "../../Context"; @@ -48,18 +45,18 @@ function Loaded({
} + icon={} amount={`$ ${humanize(props.donationsBal - props.payoutsMade, 2)}`} />
} + icon={} amount={`$ ${humanize(props.sustainabilityFundBal, 2)}`} />
} + icon={} amount={props.contributionsCount.toString()} /> @@ -74,7 +71,7 @@ function Loaded({
} + icon={} amount={`$ ${humanize(props.payoutsPending, 2)}`} />
- +

Grant

{value.cash}%

diff --git a/src/pages/Admin/Charity/Dashboard/Schedule/Schedule.tsx b/src/pages/Admin/Charity/Dashboard/Schedule/Schedule.tsx index fe7fcfd9a6..17af2702ee 100644 --- a/src/pages/Admin/Charity/Dashboard/Schedule/Schedule.tsx +++ b/src/pages/Admin/Charity/Dashboard/Schedule/Schedule.tsx @@ -6,8 +6,6 @@ import { useModalContext } from "contexts/ModalContext"; import { humanize } from "helpers"; import { useAdminContext } from "pages/Admin/Context"; import { useRef } from "react"; -import { IoArrowForwardOutline } from "react-icons/io5"; //icon-arrow-right -import { RiPencilFill } from "react-icons/ri"; //icon-pencil import { useEndowmentQuery } from "services/aws/aws"; import { Edit } from "./Edit"; @@ -46,7 +44,7 @@ export function Schedule(props: Props) { }); }} > - + Edit allocation settings @@ -58,7 +56,7 @@ export function Schedule(props: Props) {

- +
Grants