I've implemented a Material UI table and need now to show a Dialog when user clicks on a specific row.
Bellow is just part of the code that ilustrates what I am doing. It gets the onClick event and calls the handleCellClick function to handle the event. The handle function should call the ResponsiveDialog, which is actually a snipped from the Material UI, but for some reason it daoesnt get executed.
export const OrderScoreCell = (props) => {
const { score, scoreDesc } = props
const handleCellClick = (e) => {
<ResponsiveDialog />
}
return (
<>
<TableCell onClick={handleCellClick} lign="left">
<LightTooltip
title={`Risco ${scoreDesc}`}
placement="top-end"
arrow
interactive
TransitionComponent={Fade}
TransitionProps={{ timeout: 600 }}
aria-label="score"
>