Skip to content

Commit

Permalink
feat(connect-form): Update ssl tab to use box select instead of selec…
Browse files Browse the repository at this point in the history
…t dropdown (#209)
  • Loading branch information
Anemy authored Nov 20, 2020
1 parent 1b07cfd commit 3320243
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import SSL_METHODS, {
SSLMethodOptions
} from '../../../connection-model/constants/ssl-methods';
import FormGroup from '../../form/form-group';
import FormItemSelect from '../../form/form-item-select';
import RadioBoxGroup from '../../form/radio-box-group/radio-box-group';
import SSLServerValidation from './ssl-server-validation';
import SSLServerClientValidation from './ssl-server-client-validation';

Expand Down Expand Up @@ -53,13 +53,14 @@ class SSLTab extends React.Component<StateProps & DispatchProps> {

return (
<FormGroup id="sslMethod" separator>
<FormItemSelect
<RadioBoxGroup
label="SSL"
name="sslMethod"
options={SSLMethodOptions.map((methodOption) => ({
[`${methodOption.id}`]: methodOption.title
options={SSLMethodOptions.map((sslMethodOption) => ({
label: sslMethodOption.title,
value: sslMethodOption.id
}))}
changeHandler={this.onSSLMethodChanged}
onChange={this.onSSLMethodChanged}
value={sslMethod}
/>
{this.renderSSLMethod()}
Expand Down

0 comments on commit 3320243

Please sign in to comment.