DonationReceipt.tsx
2 years ago
DonationSummaryItems.tsx
2 years ago
FieldDescription.tsx
2 years ago
FieldError.tsx
2 years ago
FieldLabel.tsx
2 years ago
Form.tsx
2 years ago
FormError.tsx
2 years ago
Goal.tsx
2 years ago
GoalAchieved.tsx
2 years ago
Header.tsx
2 years ago
HeaderDescription.tsx
2 years ago
HeaderTitle.tsx
2 years ago
MultiStepForm.tsx
2 years ago
NodeWrapper.tsx
2 years ago
Section.tsx
2 years ago
FormError.tsx
15 lines
| 1 | import { __ } from "@wordpress/i18n"; |
| 2 | |
| 3 | export default function FormError({error}: {error: string}) { |
| 4 | return ( |
| 5 | <div className="givewp-donation-form__errors"> |
| 6 | <p className="givewp-donation-form__errors__description"> |
| 7 | {__('The following error occurred when submitting the form:', 'give')} |
| 8 | </p> |
| 9 | <ul className="givewp-donation-form__errors__messages"> |
| 10 | <li className="givewp-donation-form__errors__message">{error}</li> |
| 11 | </ul> |
| 12 | </div> |
| 13 | ); |
| 14 | } |
| 15 |