remove config pass-through

removing this for the time being to giving the config Context a try
This commit is contained in:
Jake McDermott 2019-01-03 18:00:20 -05:00
parent 87101a487d
commit 23e34bcbbe
No known key found for this signature in database
GPG Key ID: 9A6F084352C3A0B7
2 changed files with 2 additions and 3 deletions

View File

@ -141,7 +141,7 @@ class App extends Component {
}
>
<ConfigContext.Provider value={config}>
{render && render({ routeGroups, config })}
{render && render({ routeGroups })}
</ConfigContext.Provider>
</Page>
<About

View File

@ -251,7 +251,7 @@ export async function main (render, api) {
],
},
]}
render={({ routeGroups, config }) => (
render={({ routeGroups }) => (
routeGroups
.reduce((allRoutes, { routes }) => allRoutes.concat(routes), [])
.map(({ component: PageComponent, path }) => (
@ -262,7 +262,6 @@ export async function main (render, api) {
<PageComponent
api={api}
match={match}
{...config}
/>
)}
/>