bug on reactflow render, now tabs kind of work, but is not perfect yet, does not have the save function yet

This commit is contained in:
anovazzi1 2023-02-21 01:35:27 -03:00
commit b807bd76ce
3 changed files with 19 additions and 4 deletions

View file

@ -1,12 +1,16 @@
import { XMarkIcon } from "@heroicons/react/24/solid";
import { classNames } from "../../../../utils";
type tabProps = {
name:string;
}
export default function TabComponent({children}){
export default function TabComponent({children,selected}){
return(
<div className="bg-blue-400 w-2">
<div className={classNames(selected?" shadow-lg":"bg-gray-300","flex border-t border-l border-r border-black rounded-t-md shadow-sm cursor-pointer")}>
{children}
<XMarkIcon className="w-5 hover:text-red-500"></XMarkIcon>
</div>
)
}