pgadmin4/web/regression/javascript/__mocks__/react-data-grid.jsx
Aditya Toshniwal 042888f5d7
Fixed an issue where ERD auto-layout should: #6592 (#8167)
- Always generate right-angled links
- Switch port to Left/Right for the best link route.
2024-11-22 16:26:50 +05:30

17 lines
392 B
JavaScript

import React, { useRef } from 'react';
import PropTypes from 'prop-types';
export * from 'react-data-grid';
const ReactDataGrid = React.forwardRef((props, _ref)=>{
const ele = useRef();
return <div id={props.id} ref={ele} data-test="react-data-grid"/>;
});
ReactDataGrid.displayName = 'ReactDataGrid';
ReactDataGrid.propTypes = {
id: PropTypes.any
};
export default ReactDataGrid;