From 0eb16bef6c58361a0ddd1b855bd8398c8b0499eb Mon Sep 17 00:00:00 2001 From: Joshua Dinh Date: Fri, 18 Aug 2023 08:16:36 -0700 Subject: [PATCH] fix: add prop type to multstep forms --- .../resources/app/store/form-settings/index.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/DonationForms/resources/app/store/form-settings/index.tsx b/src/DonationForms/resources/app/store/form-settings/index.tsx index f0f02751c1..c09d7aacf4 100644 --- a/src/DonationForms/resources/app/store/form-settings/index.tsx +++ b/src/DonationForms/resources/app/store/form-settings/index.tsx @@ -9,6 +9,7 @@ type PropTypes = { [key: string]: unknown; currencySwitcherSettings?: CurrencySwitcherSetting[]; currencySwitcherMessage?: string; + donateButtonCaption: string; }; children: ReactNode; }; @@ -17,11 +18,7 @@ type PropTypes = { * @since 3.0.0 */ const DonationFormSettingsProvider = ({value, children}: PropTypes) => { - return ( - - {children} - - ); + return {children}; }; const useDonationFormSettings = () => useContext(StoreContext);