forked from Gitlink/forgeplus-react
21 lines
479 B
JavaScript
21 lines
479 B
JavaScript
import React, { Component } from 'react';
|
|
|
|
import TPIContext from '../../context/TPIContext'
|
|
import TPIContextProvider from '../../context/TPIContextProvider'
|
|
|
|
import Index from './Index.js'
|
|
class IndexWrapper extends Component {
|
|
|
|
render() {
|
|
return (<TPIContextProvider {...this.props} >
|
|
<TPIContext.Consumer>
|
|
{context=>
|
|
<Index {...context}></Index>
|
|
}
|
|
</TPIContext.Consumer>
|
|
</TPIContextProvider>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default IndexWrapper; |