packages/core: add consumer side to AlertApi and use for AlertDialog + friends

This commit is contained in:
Patrik Oldsberg
2020-05-25 21:51:06 +02:00
parent 6d3f745b4b
commit 9be7870a34
4 changed files with 26 additions and 27 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ import React, { FC } from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
import Root from './components/Root';
import * as plugins from './plugins';
import apis, { alertApiForwarder } from './apis';
import apis from './apis';
const app = createApp({
apis,
@@ -31,7 +31,7 @@ const AppComponent = app.getRootComponent();
const App: FC<{}> = () => (
<AppProvider>
<AlertDisplay forwarder={alertApiForwarder} />
<AlertDisplay />
<OAuthRequestDialog />
<Router>
<Root>