mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-08 15:13:10 -06:00
13 lines
370 B
JavaScript
13 lines
370 B
JavaScript
import React from 'react';
|
|
import { PgAdminProvider } from '../../pgadmin/static/js/PgAdminProvider';
|
|
import fakePgAdmin from './fake_pgadmin';
|
|
|
|
export default function withPgadmin(WrappedComp) {
|
|
/* eslint-disable react/display-name */
|
|
return (props)=>{
|
|
return <PgAdminProvider value={fakePgAdmin}>
|
|
<WrappedComp {...props}/>
|
|
</PgAdminProvider>;
|
|
};
|
|
}
|