mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-09 14:00:15 -04:00
Fixed typing for TagsInput
This commit is contained in:
parent
14eebbefba
commit
6a947b577c
|
@ -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
2
package-lock.json
generated
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "compass",
|
||||
"name": "workspace",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
|
Loading…
Reference in New Issue
Block a user