-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Additional restructure and cleanups
- Loading branch information
1 parent
9c34ce1
commit 991dda1
Showing
15 changed files
with
68 additions
and
101 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
8 changes: 6 additions & 2 deletions
8
...n/payments/store/CreatePaymentContext.tsx → ...ts/create-payment/CreatePaymentDialog.tsx
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
6 changes: 3 additions & 3 deletions
6
src/components/admin/payments/create-payment/CreatePaymentStepper.tsx
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
4 changes: 2 additions & 2 deletions
4
src/components/admin/payments/create-payment/PaymentTypeSelector.tsx
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
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
6 changes: 3 additions & 3 deletions
6
src/components/admin/payments/create-payment/benevity/BenevityImportTypeSelector.tsx
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
2 changes: 1 addition & 1 deletion
2
src/components/admin/payments/create-payment/benevity/CreatePaymentFromBenevityForm.tsx
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
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
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
45 changes: 45 additions & 0 deletions
45
src/components/admin/payments/create-payment/benevity/helpers/form/initialValues.ts
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { TBenevityCSVParser, TBenevityDonation } from '../benevity.types' | ||
|
||
export const benevityInitialValues: TBenevityCSVParser = { | ||
charityId: '', | ||
charityName: '', | ||
currency: '', | ||
donations: [], | ||
periodEnding: '', | ||
paymentMethod: '', | ||
disbursementId: '', | ||
checkFee: '', | ||
totalDonationsGross: '', | ||
netTotalPayment: 0, | ||
transactionAmount: 0, | ||
exchangeRate: 0, | ||
note: '', | ||
} | ||
|
||
export const benevityDonationInitialValues: TBenevityDonation = { | ||
company: '', | ||
project: '', | ||
donationDate: '', | ||
donorFirstName: '', | ||
donorLastName: '', | ||
email: '', | ||
address: '', | ||
city: '', | ||
stateProvince: '', | ||
postalCode: '', | ||
activity: '', | ||
comment: '', | ||
transactionId: '', | ||
donationFrequency: '', | ||
currency: '', | ||
projectRemoteId: '', | ||
source: '', | ||
reason: '', | ||
totalDonationToBeAcknowledged: 0, | ||
matchAmount: 0, | ||
causeSupportFee: 0, | ||
merchantFee: 0, | ||
feeComment: '', | ||
totalFee: 0, | ||
totalAmount: 0, | ||
} |
File renamed without changes.
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
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
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
This file was deleted.
Oops, something went wrong.