fix: update web deps and fix imports (#38)

This commit is contained in:
Ludvig Lundgren 2021-11-24 23:49:17 +01:00 committed by GitHub
parent c7b61d803e
commit 506cef6f0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 2668 additions and 2530 deletions

View file

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import {Field} from "react-final-form"; 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"; import {classNames, COL_WIDTHS} from "../../styles/utils";
interface Props { interface Props {
@ -24,7 +24,7 @@ const MultiSelectField: React.FC<Props> = ({
)} )}
> >
<label <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} htmlFor={label}
> >
{label} {label}

View file

@ -24,7 +24,7 @@ const NumberFieldWide: React.FC<Props> = ({
hidden, hidden,
className, 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> <div>
<label <label
htmlFor={name} htmlFor={name}
@ -37,7 +37,7 @@ const NumberFieldWide: React.FC<Props> = ({
<Field <Field
name={name} name={name}
defaultValue={defaultValue} defaultValue={defaultValue}
parse={(v) => v & parseInt(v, 10)} parse={(v: any) => v & parseInt(v, 10)}
render={({ input, meta }) => ( render={({ input, meta }) => (
<input <input
{...input} {...input}

View file

@ -1,5 +1,5 @@
import React from "react"; 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 { Field } from "formik";
import { classNames, COL_WIDTHS } from "../../../styles/utils"; import { classNames, COL_WIDTHS } from "../../../styles/utils";
@ -24,7 +24,7 @@ const MultiSelect: React.FC<Props> = ({
)} )}
> >
<label <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} htmlFor={label}
> >
{label} {label}

File diff suppressed because it is too large Load diff