pgadmin4/web/regression/javascript/fake_theme.js
Aditya Toshniwal dcfef154ce
- Set the browser target to ES6 and reduce the JS bundle size considerably
- Upgrade ESLint to v9.x and migrate the .eslintrc.js file to make it work
2024-07-04 18:25:47 +05:30

9 lines
184 B
JavaScript

import React from 'react';
import Theme from 'sources/Theme';
export function withTheme(WrappedComp) {
return (props)=>{
return <Theme><WrappedComp {...props}/></Theme>;
};
}