Refactor ActionButton component
parent
b3bdb38997
commit
cbe251d776
|
@ -2,7 +2,7 @@ import React from "react";
|
|||
import PropTypes from "prop-types";
|
||||
import { IconButton, Tooltip } from "@mui/material";
|
||||
|
||||
const ActionButton = React.forwardRef((props, _ref) => {
|
||||
const ActionButton = React.forwardRef(props => {
|
||||
const { action, machine, callback, disabled } = props;
|
||||
const id = `machine-item-${machine.machineId}-${action.code}`;
|
||||
const handleActionClick = event => {
|
||||
|
|
Loading…
Reference in New Issue