mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-07 08:39:03 +05:30
21 lines
448 B
JavaScript
21 lines
448 B
JavaScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
|
|
import { bsod } from './actions';
|
|
import BSoD from 'app/components/ui/bsod/BSoD';
|
|
|
|
let injectedStore;
|
|
let onBsod;
|
|
|
|
export default function dispatchBsod(store = injectedStore) {
|
|
store.dispatch(bsod());
|
|
onBsod && onBsod();
|
|
|
|
ReactDOM.render(<BSoD />, document.getElementById('app'));
|
|
}
|
|
|
|
export function inject(store, stopLoading) {
|
|
injectedStore = store;
|
|
onBsod = stopLoading;
|
|
}
|