-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recurring donation #708
Recurring donation #708
Conversation
if (id) { | ||
id = String(id) | ||
const { data }: UseQueryResult<RecurringDonationResponse> = useRecurringDonation(id) | ||
|
||
initialValues = { | ||
status: data?.status, | ||
personId: data?.personId, | ||
extSubscriptionId: data?.extSubscriptionId, | ||
extCustomerId: data?.extCustomerId, | ||
amount: data?.amount, | ||
currency: data?.currency, | ||
sourceVault: data?.sourceVault, | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These values should be pass from the page
The idea is:
- In page file load the initial record fetched by ID
- Load the form with the initial records predefined coming down as prop
- Work on the data
At the moment CreatePage
and EditPage
look the same, but they should not.
See as example
@dimitur2204 I do agree that we need a better approach for selecting a person. Let's use the current It can be done within the |
Fix Technologies section on About project page
Fix spacings between category wrappers on About project page
…ield Add form select field common component
…into recurring-donation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @Marina-yoya and @dimitur2204 for bringing this functionality to life
All Recurring Donations
Create form
Details