Remove autofixable rules

[MAILPOET-3201]
This commit is contained in:
Pavel Dohnal
2020-11-16 09:32:39 +01:00
committed by Veljko V
parent f107a01647
commit 07c9cca3b1
100 changed files with 595 additions and 600 deletions

View File

@@ -4,15 +4,15 @@ import Checkbox from './checkbox';
type CheckboxValueType = string | string[] | number;
type CheckboxProps = InputHTMLAttributes<HTMLInputElement> & {
label: string,
label: string;
}
type Props = {
name: string,
options: CheckboxProps[],
defaultValue?: CheckboxValueType[]
isFullWidth?: boolean,
onChange?: (values: CheckboxValueType[]) => void,
name: string;
options: CheckboxProps[];
defaultValue?: CheckboxValueType[];
isFullWidth?: boolean;
onChange?: (values: CheckboxValueType[]) => void;
};
const CheckboxGroup = ({
@@ -42,7 +42,7 @@ const CheckboxGroup = ({
<div>
{options.map(({ label, value, ...attributes }: CheckboxProps) => (
<Checkbox
checked={values.indexOf(value) !== -1}
checked={values.includes(value)}
key={label}
name={name}
value={value}