Connect method selcetion component

[MAILPOET-1808]
This commit is contained in:
Pavel Dohnal
2019-04-11 10:27:06 +02:00
committed by M. Shull
parent 55360c5c7b
commit ea3ed26ce1
3 changed files with 7 additions and 27 deletions

View File

@@ -3,10 +3,8 @@ import PropTypes from 'prop-types';
import PreviousNextStepButtons from './previous_next_step_buttons.jsx';
import SelectMethod from './step_method_selection/select_import_method.jsx';
function StepMethodSelection({
navigate,
isNewUser
}) {
const canGoNext = false;
const [method, setMethod] = useState(undefined);
@@ -28,7 +26,6 @@ function StepMethodSelection({
<>
<SelectMethod
activeMethod={method}
isNewUser={isNewUser}
onMethodChange={setMethod}
/>
{showNextButton()}

View File

@@ -18,6 +18,8 @@ function SelectImportMethod({
name="select_method"
data-automation-id="import-paste-method"
id="import-paste-method"
checked={activeMethod === 'import-paste-method'}
onChange={() => onMethodChange('import-paste-method')}
/>
{MailPoet.I18n.t('methodPaste')}
</label>
@@ -27,6 +29,8 @@ function SelectImportMethod({
name="select_method"
data-automation-id="import-csv-method"
id="import-csv-method"
checked={activeMethod === 'import-csv-method'}
onChange={() => onMethodChange('import-csv-method')}
/>
{MailPoet.I18n.t('methodUpload')}
</label>
@@ -36,6 +40,8 @@ function SelectImportMethod({
name="select_method"
data-automation-id="import-mailchimp-method"
id="import-mailchimp-method"
checked={activeMethod === 'import-mailchimp-method'}
onChange={() => onMethodChange('import-mailchimp-method')}
/>
{MailPoet.I18n.t('methodMailChimp')}
</label>