mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
- 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.
16 lines
462 B
JavaScript
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,
|
|
};
|