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:
parent
daa668a608
commit
b807bd76ce
3 changed files with 19 additions and 4 deletions
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue