refactor(ui): remove Tool Mode option from node toolbar (#8432)

♻️ (nodeToolbarComponent/index.tsx): Remove redundant code related to the Tool Mode feature to simplify the component and improve maintainability.
This commit is contained in:
Cristhian Zanforlin Lousa 2025-06-10 17:23:56 -03:00 committed by GitHub
commit 7be8161049
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -711,20 +711,6 @@ const NodeToolbarComponent = memo(
</span>
</div>
</SelectItem>
{hasToolMode && (
<SelectItem value="toolMode">
<ToolbarSelectItem
shortcut={
shortcuts.find((obj) => obj.name === "Tool Mode")
?.shortcut!
}
value={"Tool Mode"}
icon={"Hammer"}
dataTestId="tool-mode-button"
style={`${toolMode ? "text-primary" : ""} transition-all`}
/>
</SelectItem>
)}
</SelectContentWithoutPortal>
</Select>
</div>