and index.jsx tests

This commit is contained in:
John Mitchell
2018-11-02 13:45:11 -04:00
parent 19dcf5ed59
commit 90d1ab88b1
2 changed files with 33 additions and 5 deletions

View File

@@ -11,9 +11,15 @@ import './app.scss';
const el = document.getElementById('app');
api.getRoot()
.then(({ data }) => {
const { custom_logo, custom_login_info } = data;
const main = () => {
api.getRoot()
.then(({ data }) => {
const { custom_logo, custom_login_info } = data;
render(<App logo={custom_logo} loginInfo={custom_login_info} />, el);
});
render(<App logo={custom_logo} loginInfo={custom_login_info} />, el);
});
};
main();
export default main;