refactor: Update ActionsGroup component to improve readability and maintainability
parent
e2f724dd97
commit
b695cd6014
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue