bouncing effect solved
This commit is contained in:
parent
2eeaf06585
commit
63738eeffc
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ import { TabsContext } from "../../../../contexts/tabsContext";
|
|||
var _ = require("lodash");
|
||||
|
||||
export default function TabComponent({ selected, flow, onClick }) {
|
||||
const { removeFlow, updateFlow } = useContext(TabsContext);
|
||||
const { removeFlow, updateFlow,flows } = useContext(TabsContext);
|
||||
const [isRename, setIsRename] = useState(false);
|
||||
const [value, setValue] = useState("");
|
||||
return (
|
||||
|
|
@ -61,7 +61,7 @@ export default function TabComponent({ selected, flow, onClick }) {
|
|||
removeFlow(flow.id);
|
||||
}}
|
||||
>
|
||||
<XMarkIcon className="h-4 hover:bg-gray-100 rounded-full" />
|
||||
{flows.length>1&& <XMarkIcon className="h-4 hover:bg-gray-100 rounded-full" />}
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue