mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix: update web deps and fix imports (#38)
This commit is contained in:
parent
c7b61d803e
commit
506cef6f0f
4 changed files with 2668 additions and 2530 deletions
|
@ -1,6 +1,6 @@
|
|||
import React from "react";
|
||||
import {Field} from "react-final-form";
|
||||
import MultiSelect from "react-multi-select-component";
|
||||
import { MultiSelect } from "react-multi-select-component";
|
||||
import {classNames, COL_WIDTHS} from "../../styles/utils";
|
||||
|
||||
interface Props {
|
||||
|
@ -24,7 +24,7 @@ const MultiSelectField: React.FC<Props> = ({
|
|||
)}
|
||||
>
|
||||
<label
|
||||
className="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2"
|
||||
className="block mb-2 text-xs font-bold tracking-wide text-gray-700 uppercase"
|
||||
htmlFor={label}
|
||||
>
|
||||
{label}
|
||||
|
|
|
@ -24,7 +24,7 @@ const NumberFieldWide: React.FC<Props> = ({
|
|||
hidden,
|
||||
className,
|
||||
}) => (
|
||||
<div className="space-y-1 px-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5">
|
||||
<div className="px-4 space-y-1 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5">
|
||||
<div>
|
||||
<label
|
||||
htmlFor={name}
|
||||
|
@ -37,7 +37,7 @@ const NumberFieldWide: React.FC<Props> = ({
|
|||
<Field
|
||||
name={name}
|
||||
defaultValue={defaultValue}
|
||||
parse={(v) => v & parseInt(v, 10)}
|
||||
parse={(v: any) => v & parseInt(v, 10)}
|
||||
render={({ input, meta }) => (
|
||||
<input
|
||||
{...input}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React from "react";
|
||||
import RMSC from "react-multi-select-component";
|
||||
import { MultiSelect as RMSC} from "react-multi-select-component";
|
||||
import { Field } from "formik";
|
||||
import { classNames, COL_WIDTHS } from "../../../styles/utils";
|
||||
|
||||
|
@ -24,7 +24,7 @@ const MultiSelect: React.FC<Props> = ({
|
|||
)}
|
||||
>
|
||||
<label
|
||||
className="block uppercase tracking-wide text-gray-700 dark:text-gray-200 text-xs font-bold mb-2"
|
||||
className="block mb-2 text-xs font-bold tracking-wide text-gray-700 uppercase dark:text-gray-200"
|
||||
htmlFor={label}
|
||||
>
|
||||
{label}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue