mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 19:02:15 +00:00
ToastsContainerProvider used in App
This commit is contained in:
parent
293868aa0e
commit
850f6ce399
1 changed files with 9 additions and 6 deletions
|
|
@ -2,6 +2,7 @@ require('spatial-navigation-polyfill');
|
|||
const React = require('react');
|
||||
const { Router } = require('stremio-router');
|
||||
const { Core, KeyboardNavigation, ServicesProvider, Shell } = require('stremio/services');
|
||||
const ToastsContainerProvider = require('../common/ToastsContainerContext/ToastsContainerProvider');
|
||||
const routerViewsConfig = require('./routerViewsConfig');
|
||||
const styles = require('./styles');
|
||||
|
||||
|
|
@ -45,12 +46,14 @@ const App = () => {
|
|||
<ServicesProvider services={services}>
|
||||
{
|
||||
shellInitialized && coreInitialized ?
|
||||
<Router
|
||||
className={styles['router']}
|
||||
homePath={'/'}
|
||||
viewsConfig={routerViewsConfig}
|
||||
onPathNotMatch={onPathNotMatch}
|
||||
/>
|
||||
<ToastsContainerProvider>
|
||||
<Router
|
||||
className={styles['router']}
|
||||
homePath={'/'}
|
||||
viewsConfig={routerViewsConfig}
|
||||
onPathNotMatch={onPathNotMatch}
|
||||
/>
|
||||
</ToastsContainerProvider>
|
||||
:
|
||||
<div className={styles['app-loader']} />
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue