Merged in SW-3396-move-my-saved-cards-to-design-system (pull request #2762)
SW-3396 move my saved cards to design system * Move PaymentOption, PaymentOptionsGroup, PaymentIcons and MySavedCards (renamed SelectPaymentMethod) to design-system * Remove unused svg payment icons * cleanu * cleanup * trackUpdatePaymentMethod: remove hotelId argument that was never passed Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { FormProvider, useForm } from 'react-hook-form'
|
||||
|
||||
export const FormDecorator = (Story: React.FC) => {
|
||||
const formMethods = useForm()
|
||||
return (
|
||||
<FormProvider {...formMethods}>
|
||||
<Story />
|
||||
</FormProvider>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user