MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / withBrowser

Function withBrowser

web/regression/javascript/genericFunctions.jsx:19–28  ·  view source on GitHub ↗
(WrappedComp)

Source from the content-addressed store, hash-verified

17import { PgAdminProvider } from '../../pgadmin/static/js/PgAdminProvider';
18
19export function withBrowser(WrappedComp) {
20 /* eslint-disable react/display-name */
21 return (props)=>{
22 return <Theme>
23 <PgAdminProvider value={fakePgAdmin}>
24 <WrappedComp {...props}/>
25 </PgAdminProvider>
26 </Theme>;
27 };
28}
29
30const SchemaViewWithBrowser = withBrowser(SchemaView);
31

Calls

no outgoing calls

Tested by

no test coverage detected