set better name aproach to tabs for now

This commit is contained in:
anovazzi1 2023-02-22 18:25:54 -03:00
commit f8d8e42aad
2 changed files with 10 additions and 7 deletions

View file

@ -3,10 +3,10 @@ import { useContext } from "react";
import { TabsContext } from "../../../../contexts/tabsContext";
import { classNames } from "../../../../utils";
export default function TabComponent({ children, selected, id }) {
export default function TabComponent({ children, selected, id, onClick}) {
const { removeFlow, flows } = useContext(TabsContext);
return (
<div
<div onClick={onClick}
className={classNames(
selected ? " shadow-lg" : "bg-gray-300",
"flex border-t border-l border-r border-black rounded-t-md shadow-sm cursor-pointer"