mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Update provider export syntax
This commit is contained in:
@@ -5,7 +5,7 @@ import { withNetwork } from './Network';
|
|||||||
|
|
||||||
const ConfigContext = React.createContext({});
|
const ConfigContext = React.createContext({});
|
||||||
|
|
||||||
class provider extends Component {
|
class Provider extends Component {
|
||||||
constructor (props) {
|
constructor (props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ class provider extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const ConfigProvider = withNetwork(provider);
|
export const ConfigProvider = withNetwork(Provider);
|
||||||
|
|
||||||
export const Config = ({ children }) => (
|
export const Config = ({ children }) => (
|
||||||
<ConfigContext.Consumer>
|
<ConfigContext.Consumer>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import APIClient from '../api';
|
|||||||
|
|
||||||
const NetworkContext = React.createContext({});
|
const NetworkContext = React.createContext({});
|
||||||
|
|
||||||
class prov extends Component {
|
class Provider extends Component {
|
||||||
constructor (props) {
|
constructor (props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
@@ -72,8 +72,8 @@ class prov extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export { NetworkProvider as _NetworkProvider };
|
export { Provider as _NetworkProvider };
|
||||||
export const NetworkProvider = withRootDialog(withRouter(prov));
|
export const NetworkProvider = withRootDialog(withRouter(Provider));
|
||||||
|
|
||||||
export function withNetwork (Child) {
|
export function withNetwork (Child) {
|
||||||
return (props) => (
|
return (props) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user