From 1add5145525fee904f45e9021f16df54316f6e91 Mon Sep 17 00:00:00 2001 From: Axel Vankrunkelsven Date: Fri, 13 Oct 2017 16:45:41 +0200 Subject: [PATCH] [client-app] Replace smtp/imap port dropdown with input field --- .../lib/page-account-settings-imap.jsx | 48 +------------------ 1 file changed, 1 insertion(+), 47 deletions(-) diff --git a/packages/client-app/internal_packages/onboarding/lib/page-account-settings-imap.jsx b/packages/client-app/internal_packages/onboarding/lib/page-account-settings-imap.jsx index e330131d86..2ad56fd366 100644 --- a/packages/client-app/internal_packages/onboarding/lib/page-account-settings-imap.jsx +++ b/packages/client-app/internal_packages/onboarding/lib/page-account-settings-imap.jsx @@ -56,52 +56,6 @@ class AccountIMAPSettingsForm extends React.Component { this.props.onConnect(); } - renderPortDropdown(protocol) { - if (!["imap", "smtp"].includes(protocol)) { - throw new Error(`Can't render port dropdown for protocol '${protocol}'`); - } - const {accountInfo, submitting, onFieldKeyPress, onFieldChange} = this.props; - - if (protocol === "imap") { - return ( - - - - - ) - } - if (protocol === "smtp") { - return ( - - - - - ) - } - return ""; - } - renderSecurityDropdown(protocol) { const {accountInfo, submitting, onFieldKeyPress, onFieldChange} = this.props; @@ -142,7 +96,7 @@ class AccountIMAPSettingsForm extends React.Component {
- {this.renderPortDropdown(type)} + {this.renderSecurityDropdown(type)}