message: Fixed click behaviour on not editable tables
diff: @@ -80,6 +80,9 @@ const useStyles = makeStyles<Theme, StyleProps>((theme: Theme) =>
  alignItems: "center",
  fontSize: "0.875rem"
  },
  + tableRowClickable: {
  + cursor: "pointer"
  + },
  column: {
  padding: "0px !important"
  },
  @@ -163,6 +166,8 @@ export function CollectionTable<S extends EntitySchema<Key, P>,
  const [formPopupOpen, setFormPopupOpen] = React.useState<boolean>(false);
  const [preventOutsideClick, setPreventOutsideClick] = React.useState<boolean>(false);
  + const clickableRows = (!editEnabled || !inlineEditing) && onEntityClick;
  +
  const history = useHistory();
  history.listen(() => {
  setFormPopupOpen(false);
  @@ -349,24 +354,6 @@ export function CollectionTable<S extends EntitySchema<Key, P>,
  setFilter(filterValues);
  };
  - // const selectedCell = {
  - // tableKey: selectedCell?.tableKey,
  - // columnIndex: selectedCell?.columnIndex,
  - // rowIndex: selectedCell?.rowIndex,
  - // entity: selectedCell?.entity,
  - // name: selectedCell?.name,
  - // property: selectedCell?.property,
  - // cellRect: selectedCell?.cellRect,
  - // focused,
  - // select,
  - // unselect,
  - // focus,
  - // formPopupOpen,
  - // setFormPopupOpen,
  - // preventOutsideClick,
  - // setPreventOutsideClick
  - // };
  -
  const cellRenderer = ({
  column,
  columnIndex,
  @@ -600,9 +587,10 @@ export function CollectionTable<S extends EntitySchema<Key, P>,
  body =
  (
  <AutoResizer>
  - {({ width, height }) => (
  + {({ width, height }) => {
  + return (
  <BaseTable
  - rowClassName={`${classes.tableRow}`}
  + rowClassName={`${classes.tableRow} ${classes.tableRowClickable}`}
  data={currentData}
  width={width}
  height={height}
  @@ -619,8 +607,7 @@ export function CollectionTable<S extends EntitySchema<Key, P>,
  onEndReachedThreshold={PIXEL_NEXT_PAGE_OFFSET}
  onEndReached={loadNextPage}
  rowEventHandlers={
  - !editEnabled && !inlineEditing &&
  - onEntityClick ?
  + clickableRows ?
  { onClick: ({ rowData }) => onEntityClick && onEntityClick(collectionPath, rowData as Entity<S>) }
  : undefined
  }
  @@ -655,7 +642,8 @@ export function CollectionTable<S extends EntitySchema<Key, P>,
  width={column.width}/>)
  }
  </BaseTable>
  - )
  + );
  + }
  }
  </AutoResizer>
  