refactor: Update ActionsGroup component to improve readability and maintainability

master^2
Tudor Stanciu 2024-07-13 18:38:26 +03:00
parent e2f724dd97
commit b695cd6014
1 changed files with 17 additions and 16 deletions

View File

@ -27,6 +27,7 @@ const ActionsGroup = ({ machine, actions, addLog }) => {
return (
<>
<div style={{ display: "flex", flexDirection: "row", justifyContent: "flex-end" }}>
<WakeComponent machine={machine} addLog={addLog} disabled={!canOperateMachines} />
{mainActions.map(action => (
<ActionButton
@ -45,7 +46,7 @@ const ActionsGroup = ({ machine, actions, addLog }) => {
}}
machine={machine}
/>
</div>
<Menu
id="secondary-actions-menu"
anchorEl={menuAnchor}