Fixed typing for TagsInput

This commit is contained in:
Nick A 2024-10-15 19:37:54 -04:00
parent 65a5e05d59
commit 2766ad8eee
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 "tailwindcss/tailwind.css";
import { TagsArray } from "./TagsArray"; import { TagsArray } from "./TagsArray";
import { TagDropdown } from "./TagDropdown"; import { TagDropdown } from "./TagDropdown";
@ -7,8 +7,8 @@ import { CreateNewTagAction } from "./CreateNewTagAction";
interface TagsInputProps { interface TagsInputProps {
presetOptions: string[]; presetOptions: string[];
presetValue: string | string[]; presetValue: string | string[];
setPresetOptions: () => {}; setPresetOptions: Dispatch<SetStateAction<string | string[]>>;
getTagColor: () => {}; getTagColor(tag: string): string;
} }
const TagsInput: React.FC<TagsInputProps> = ({ const TagsInput: React.FC<TagsInputProps> = ({

2
package-lock.json generated
View File

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