Connect method selcetion component
[MAILPOET-1808]
This commit is contained in:
@@ -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()}
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user