import React from 'react'; import { FormattedMessage as T } from 'components'; import { Intent, Button } from '@blueprintjs/core'; import withDialogActions from 'containers/Dialog/withDialogActions'; import { compose } from 'redux'; import { useFormikContext } from 'formik'; /** * Payment via license code tab. */ function LicenseTab({ openDialog }) { const { submitForm, values } = useFormikContext(); const handleSubmitBtnClick = () => { submitForm().then(() => { openDialog('payment-via-voucher', { ...values }); }); }; return (