+ client: 2152 Smartphone compatible design for user interface
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import React, { Fragment } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Trans } from 'react-i18next';
|
||||
import classNames from 'classnames';
|
||||
import { createOnBlurHandler } from './helpers';
|
||||
import { R_UNIX_ABSOLUTE_PATH, R_WIN_ABSOLUTE_PATH } from './constants';
|
||||
|
||||
@@ -210,13 +209,10 @@ export const renderSelectField = ({
|
||||
label,
|
||||
}) => {
|
||||
const showWarning = touched && error;
|
||||
const selectClass = classNames('form-control custom-select', {
|
||||
'select--no-warning': !showWarning,
|
||||
});
|
||||
|
||||
return <>
|
||||
{label && <label><Trans>{label}</Trans></label>}
|
||||
<select {...input} className={selectClass}>{children}</select>
|
||||
<select {...input} className='form-control custom-select'>{children}</select>
|
||||
{showWarning
|
||||
&& <span className="form__message form__message--error form__message--left-pad"><Trans>{error}</Trans></span>}
|
||||
</>;
|
||||
|
||||
Reference in New Issue
Block a user