fix(vite): update code for updated dependencies (#1043)

* how do I shoot web??

* black rabbit feedback + update deps
This commit is contained in:
Kyle Sanderson 2023-08-13 08:47:31 -07:00 committed by GitHub
parent 82ffd3645b
commit 6d78e1e0a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 1972 additions and 1843 deletions

View file

@ -7,6 +7,7 @@ import { useMutation, useQueryClient } from "@tanstack/react-query";
import { toast } from "react-hot-toast";
import { XMarkIcon } from "@heroicons/react/24/solid";
import type { FieldProps } from "formik";
import type { FieldArrayRenderProps } from "formik";
import { Field, FieldArray, FormikErrors, FormikValues } from "formik";
import { ExclamationTriangleIcon } from "@heroicons/react/24/outline";
import Select, { components, ControlProps, InputProps, MenuProps, OptionProps } from "react-select";
@ -26,7 +27,7 @@ interface ChannelsFieldArrayProps {
const ChannelsFieldArray = ({ channels }: ChannelsFieldArrayProps) => (
<div className="p-6">
<FieldArray name="channels">
{({ remove, push }) => (
{({ remove, push }: FieldArrayRenderProps) => (
<div className="flex flex-col space-y-2 border-2 border-dashed dark:border-gray-700 p-4">
{channels && channels.length > 0 ? (
channels.map((_channel: IrcChannel, index: number) => (