refactor: Update ActionsGroup component to improve readability and maintainability
parent
e2f724dd97
commit
b695cd6014
|
@ -27,6 +27,7 @@ const ActionsGroup = ({ machine, actions, addLog }) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<div style={{ display: "flex", flexDirection: "row", justifyContent: "flex-end" }}>
|
||||||
<WakeComponent machine={machine} addLog={addLog} disabled={!canOperateMachines} />
|
<WakeComponent machine={machine} addLog={addLog} disabled={!canOperateMachines} />
|
||||||
{mainActions.map(action => (
|
{mainActions.map(action => (
|
||||||
<ActionButton
|
<ActionButton
|
||||||
|
@ -45,7 +46,7 @@ const ActionsGroup = ({ machine, actions, addLog }) => {
|
||||||
}}
|
}}
|
||||||
machine={machine}
|
machine={machine}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
<Menu
|
<Menu
|
||||||
id="secondary-actions-menu"
|
id="secondary-actions-menu"
|
||||||
anchorEl={menuAnchor}
|
anchorEl={menuAnchor}
|
||||||
|
|
Loading…
Reference in New Issue