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