Skip to content

Commit

Permalink
fix: add prop type to multstep forms
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaHungDinh committed Aug 18, 2023
1 parent bb7cbd9 commit 0eb16be
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/DonationForms/resources/app/store/form-settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type PropTypes = {
[key: string]: unknown;
currencySwitcherSettings?: CurrencySwitcherSetting[];
currencySwitcherMessage?: string;
donateButtonCaption: string;
};
children: ReactNode;
};
Expand All @@ -17,11 +18,7 @@ type PropTypes = {
* @since 3.0.0
*/
const DonationFormSettingsProvider = ({value, children}: PropTypes) => {
return (
<StoreContext.Provider value={value}>
{children}
</StoreContext.Provider>
);
return <StoreContext.Provider value={value}>{children}</StoreContext.Provider>;
};

const useDonationFormSettings = () => useContext<PropTypes['value']>(StoreContext);
Expand Down

0 comments on commit 0eb16be

Please sign in to comment.