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
2 changed files with 2 additions and 3 deletions

View File

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

View File

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