diff --git a/Client/src/Components/Table/index.jsx b/Client/src/Components/Table/index.jsx index f8cbdead1..1edbc3386 100644 --- a/Client/src/Components/Table/index.jsx +++ b/Client/src/Components/Table/index.jsx @@ -62,8 +62,8 @@ const DataTable = ({ headers, data, config }) => { return ( config.onRowClick(row)} + sx={config?.rowSX ?? {}} + onClick={() => config?.onRowClick(row)} > {headers.map((header, index) => { return ( @@ -96,7 +96,7 @@ DataTable.propTypes = { config: PropTypes.shape({ onRowClick: PropTypes.func.isRequired, rowSX: PropTypes.object, - }).isRequired, + }), }; export default DataTable;