Commit 2e4e19b7 authored by Michael Vrána's avatar Michael Vrána

Algorithm toggle hint select

parent 795a3643
Pipeline #80181 passed with stages
in 4 minutes and 11 seconds
......@@ -61,7 +61,8 @@ export const AlgorithmCanvasToolbar = () => {
gridOn,
elementSelected,
pastEmpty,
futureEmpty
futureEmpty,
showHint
} = useSelector((state: ReduxState) => ({
cursorMode: state.algorithmCanvas.cursorMode,
gridOn: state.algorithmCanvas.gridOn,
......@@ -69,7 +70,8 @@ export const AlgorithmCanvasToolbar = () => {
state.algorithmCanvas.selectedNode ||
state.algorithmCanvas.selectedEdge,
pastEmpty: state.algorithmData.past.length === 0,
futureEmpty: state.algorithmData.future.length === 0
futureEmpty: state.algorithmData.future.length === 0,
showHint: state.algorithmUI.showHint
}))
const handleDelete = useAlgorithmDelete()
......@@ -152,6 +154,7 @@ export const AlgorithmCanvasToolbar = () => {
Icon={HelpIcon}
label="Toggle hint"
onAction={handleToggleHint}
selected={showHint}
/>
</Paper>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment