-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7984a9
commit 93c1cc8
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
import { UseFormReturn } from "react-hook-form"; | ||
|
||
import { DialogHeader, DialogTitle } from "@/common/ui/components"; | ||
|
||
import { DonationInputs } from "../models"; | ||
|
||
export type DonationConfirmationProps = { | ||
form: UseFormReturn<DonationInputs>; | ||
}; | ||
|
||
export const DonationConfirmation = ({ | ||
form: _, | ||
}: DonationConfirmationProps) => { | ||
export const DonationConfirmation = ({ form }: DonationConfirmationProps) => { | ||
const values = form.watch(); | ||
|
||
console.log(values); | ||
|
||
return ( | ||
<div> | ||
<h1>Confirm donation</h1> | ||
</div> | ||
<> | ||
<DialogHeader> | ||
<DialogTitle>{"Confirm donation"}</DialogTitle> | ||
</DialogHeader> | ||
</> | ||
); | ||
}; |