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 {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}

View file

@ -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}

View file

@ -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}