packages/core-api: split AppComponent into AppRouter and AppRoutes

This commit is contained in:
Patrik Oldsberg
2020-06-16 00:46:39 +02:00
parent b943eb065e
commit 9a37995151
6 changed files with 76 additions and 42 deletions
+7 -4
View File
@@ -27,15 +27,18 @@ const app = createApp({
});
const AppProvider = app.getProvider();
const AppComponent = app.getRootComponent();
const AppRouter = app.getRouter();
const AppRoutes = app.getRoutes();
const App: FC<{}> = () => (
<AppProvider>
<AlertDisplay />
<OAuthRequestDialog />
<Root>
<AppComponent />
</Root>
<AppRouter>
<Root>
<AppRoutes />
</Root>
</AppRouter>
</AppProvider>
);