From be0182349c880f2c0f6f1f708ee5888fe1a66db3 Mon Sep 17 00:00:00 2001 From: robinvandermolen Date: Tue, 17 Sep 2024 16:01:58 +0200 Subject: [PATCH] :art: [#4524] Prettier code styling --- .../js/components/admin/forms/ReactSelect.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/openforms/js/components/admin/forms/ReactSelect.js b/src/openforms/js/components/admin/forms/ReactSelect.js index 748b65cb91..e3a20d16f7 100644 --- a/src/openforms/js/components/admin/forms/ReactSelect.js +++ b/src/openforms/js/components/admin/forms/ReactSelect.js @@ -1,8 +1,8 @@ import {getReactSelectStyles} from '@open-formulieren/formio-builder/esm/components/formio/select'; +import classNames from 'classnames'; import {useField} from 'formik'; import PropTypes from 'prop-types'; import ReactSelect from 'react-select'; -import classNames from 'classnames'; const initialStyles = getReactSelectStyles(); const styles = { @@ -32,7 +32,6 @@ const styles = { }), }; - const getValueRecursively = (options, value) => { if (!value) { return null; @@ -68,8 +67,8 @@ const getValueRecursively = (options, value) => { * variant. */ const SelectWithoutFormik = ({name, options, value, className, onChange, ...props}) => { - const classes = classNames("admin-react-select", { - [`${className}`]: className + const classes = classNames('admin-react-select', { + [`${className}`]: className, }); return ( { const [fieldProps, , fieldHelpers] = useField(name); const {value} = fieldProps; const {setValue} = fieldHelpers; - const classes = classNames("admin-react-select", { - [`${className}`]: className + const classes = classNames('admin-react-select', { + [`${className}`]: className, }); return (