feat(filters): perfect flac disable fields (#605)

* feat(filters): perfect flac disable fields

* feat(filters): logscore min 0 max 100

* feat(filters): validate numberfield 0 value

* feat(filters): cleanup logs

* feat(filters): set default priority 0
This commit is contained in:
ze0s 2023-01-01 16:47:07 +01:00 committed by GitHub
parent 84c7a4484e
commit 5972d421d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 46 additions and 17 deletions

View file

@ -1,4 +1,5 @@
import { Field, FieldProps } from "formik";
import { classNames } from "../../utils";
interface ErrorFieldProps {
name: string;
@ -19,12 +20,14 @@ interface CheckboxFieldProps {
name: string;
label: string;
sublabel?: string;
disabled?: boolean;
}
const CheckboxField = ({
name,
label,
sublabel
sublabel,
disabled
}: CheckboxFieldProps) => (
<div className="relative flex items-start">
<div className="flex items-center h-5">
@ -32,7 +35,8 @@ const CheckboxField = ({
id={name}
name={name}
type="checkbox"
className="focus:ring-bkue-500 h-4 w-4 text-blue-600 border-gray-300 rounded"
className={classNames("focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300 rounded", disabled ? "bg-gray-200" : "")}
disabled={disabled}
/>
</div>
<div className="ml-3 text-sm">