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:
parent
0acfd8e5e9
commit
7be8161049
1 changed files with 0 additions and 14 deletions
|
|
@ -711,20 +711,6 @@ const NodeToolbarComponent = memo(
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</SelectItem>
|
</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>
|
</SelectContentWithoutPortal>
|
||||||
</Select>
|
</Select>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue