pgadmin4/web/regression/javascript/__mocks__/@mui/material.jsx
Yogesh Mahajan 102e0a9839
- Update MUI v4 to v5
- Remove the SCSS dependency completely and use MUI for theming.
- Update - date-fns, @date-io, notistack. Remove - popper.js, sass-loader.
- Cleanup webpack config.
- Port PSQL tool to use MUI themes instead of SCSS theme.
- Theme change will reflect realtime without refreshing pgAdmin.
2024-04-09 08:21:14 +05:30

16 lines
462 B
JavaScript

import React, { useRef } from 'react';
import CustomPropTypes from '../../../../pgadmin/static/js/custom_prop_types';
export * from '@mui/material';
// mock popper
// eslint-disable-next-line no-unused-vars
export const Popper = React.forwardRef((props, _ref)=>{
const ele = useRef();
return <div ref={ele} data-test="material-popper">{props.children}</div>;
});
Popper.displayName = 'Popper';
Popper.propTypes = {
children: CustomPropTypes.children,
};