Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
carina-akaia committed Sep 22, 2024
1 parent d52d7e3 commit 4ca852e
Show file tree
Hide file tree
Showing 8 changed files with 404 additions and 352 deletions.
2 changes: 1 addition & 1 deletion src/modules/donation/components/DonationConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const DonationConfirmation: React.FC<DonationConfirmationProps> = ({
}, [form]);

const totalAmount =
inputs.potDonationPlan?.reduce(
inputs.potDonationShares?.reduce(
(total, { amount }) => total + (amount ?? 0.0),
0.0,
) ?? inputs.amount;
Expand Down
7 changes: 5 additions & 2 deletions src/modules/donation/components/DonationFlow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ModalErrorBody, useAvailableBalance } from "@/modules/core";
import { dispatch } from "@/store";

import { DonationConfirmation } from "./DonationConfirmation";
import { DonationPotAllocation } from "./DonationPotAllocation";
import { DonationPotShareAllocation } from "./DonationPotShareAllocation";
import { DonationProjectAllocation } from "./DonationProjectAllocation";
import { DonationSuccess, DonationSuccessProps } from "./DonationSuccess";
import { useDonationForm } from "../hooks";
Expand Down Expand Up @@ -68,7 +68,10 @@ export const DonationFlow: React.FC<DonationFlowProps> = ({
...staticAllocationProps,
...props,
})
: h(DonationPotAllocation, { ...staticAllocationProps, ...props });
: h(DonationPotShareAllocation, {
...staticAllocationProps,
...props,
});

case "confirmation":
return <DonationConfirmation {...{ form }} />;
Expand Down
339 changes: 0 additions & 339 deletions src/modules/donation/components/DonationPotAllocation.tsx

This file was deleted.

Loading

0 comments on commit 4ca852e

Please sign in to comment.