mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 10:42:12 +00:00
decouple Modal from stremio app
This commit is contained in:
parent
f546014424
commit
032e787081
2 changed files with 7 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ const Modal = (props) => ReactDOM.createPortal(
|
|||
<FocusableProvider>
|
||||
<div {...props} />
|
||||
</FocusableProvider>,
|
||||
document.getElementById('app')
|
||||
Modal.container
|
||||
);
|
||||
|
||||
export default Modal;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import App from './app';
|
||||
import { Modal } from 'stremio-common';
|
||||
|
||||
ReactDOM.render(<App />, document.getElementById('app'));
|
||||
const appContainer = document.getElementById('app');
|
||||
|
||||
Modal.container = appContainer;
|
||||
|
||||
ReactDOM.render(<App />, appContainer);
|
||||
|
|
|
|||
Loading…
Reference in a new issue