less hacking way of pulling poe data

This commit is contained in:
2018-08-27 23:54:27 -05:00
parent 5423b81c95
commit 97acc0d4fa
34 changed files with 651 additions and 221 deletions

32
app/wrapper.tsx Normal file
View File

@@ -0,0 +1,32 @@
import { inject, observer } from 'mobx-react';
import React from 'react';
import { Home, LoginWebview } from './components';
import { AppStore } from './stores/app.store';
interface IProps {
appStore?: AppStore;
}
interface IState {}
@inject('appStore')
@observer
export class Wrapper extends React.Component<IProps, IState> {
constructor(props: any) {
super(props);
}
public render() {
const { appStore } = this.props;
if (!appStore!.appReady) {
return null;
}
if (!appStore!.isLoggedIn) {
return <LoginWebview />;
}
return <Home />;
}
}