Skip to content

Commit

Permalink
🎨 [#4524] Prettier code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmolen authored and sergei-maertens committed Sep 19, 2024
1 parent ebee697 commit be01823
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/openforms/js/components/admin/forms/ReactSelect.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down Expand Up @@ -32,7 +32,6 @@ const styles = {
}),
};


const getValueRecursively = (options, value) => {
if (!value) {
return null;
Expand Down Expand Up @@ -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 (
<ReactSelect
Expand Down Expand Up @@ -98,8 +97,8 @@ const SelectWithFormik = ({name, options, className, ...props}) => {
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 (
<ReactSelect
Expand Down

0 comments on commit be01823

Please sign in to comment.