Fixed typing for TagsInput

This commit is contained in:
Nick A 2024-10-15 19:37:54 -04:00
parent 14eebbefba
commit 6a947b577c
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import React, { useState, useRef } from "react";
import React, { useState, useRef, Dispatch, SetStateAction } from "react";
import "tailwindcss/tailwind.css";
import { TagsArray } from "./TagsArray";
import { TagDropdown } from "./TagDropdown";
@ -7,8 +7,8 @@ import { CreateNewTagAction } from "./CreateNewTagAction";
interface TagsInputProps {
presetOptions: string[];
presetValue: string | string[];
setPresetOptions: () => {};
getTagColor: () => {};
setPresetOptions: Dispatch<SetStateAction<string | string[]>>;
getTagColor(tag: string): string;
}
const TagsInput: React.FC<TagsInputProps> = ({

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "compass",
"name": "workspace",
"lockfileVersion": 3,
"requires": true,
"packages": {