Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
carina-akaia committed Jun 18, 2024
1 parent 93c1cc8 commit 86c2a18
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/modules/donation/components/DonationFlow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
DialogHeader,
Form,
} from "@/common/ui/components";
import { cn } from "@/common/ui/utils";
import { RuntimeErrorAlert } from "@/modules/core";

import { DonationConfirmation } from "./DonationConfirmation";
Expand Down Expand Up @@ -61,9 +62,16 @@ export const DonationFlow: React.FC<DonationFlowProps> = ({
{content}

<DialogFooter>
<Button type="button" variant="brand-outline" color="black" disabled>
Add to cart
</Button>
{currentStep === "allocation" && (
<Button
type="button"
variant="brand-outline"
color="black"
disabled
>
Add to cart
</Button>
)}

<Button
type={currentStep === "confirmation" ? "submit" : "button"}
Expand All @@ -73,8 +81,13 @@ export const DonationFlow: React.FC<DonationFlowProps> = ({
? undefined
: dispatch.donation.nextStep
}
className={cn({
"w-full": currentStep === "confirmation",
})}
>
Proceed to donate
{currentStep === "confirmation"
? "Confirm donation"
: "Proceed to donate"}
</Button>
</DialogFooter>
</form>
Expand Down

0 comments on commit 86c2a18

Please sign in to comment.