tabComponent type added

This commit is contained in:
Lucas Oliveira 2023-03-02 09:41:51 -03:00
commit 8972c0e3ec

View file

@ -2,10 +2,11 @@ import { ArrowDownTrayIcon } from "@heroicons/react/24/outline";
import { PlusIcon, XMarkIcon } from "@heroicons/react/24/solid";
import { useContext, useRef, useState } from "react";
import { TabsContext } from "../../../../contexts/tabsContext";
import { FlowType } from "../../../../types/flow";
var _ = require("lodash");
export default function TabComponent({ selected, flow, onClick }) {
export default function TabComponent({ selected, flow, onClick }:{flow:FlowType,selected:boolean,onClick:()=>void}) {
const { removeFlow, updateFlow, flows } =
useContext(TabsContext);
const [isRename, setIsRename] = useState(false);
@ -88,3 +89,4 @@ export default function TabComponent({ selected, flow, onClick }) {
</>
);
}