Cleanup unneccessary folders.

Add delete account modal
This commit is contained in:
Tom Moor
2018-07-07 17:45:24 -05:00
parent 465f819c45
commit f9cbd425cb
27 changed files with 48 additions and 39 deletions

17
app/scenes/Home.js Normal file
View File

@@ -0,0 +1,17 @@
// @flow
import * as React from 'react';
import { observer, inject } from 'mobx-react';
import { Redirect } from 'react-router-dom';
import AuthStore from 'stores/AuthStore';
type Props = {
auth: AuthStore,
};
const Home = observer(({ auth }: Props) => {
if (auth.authenticated) return <Redirect to="/dashboard" />;
auth.logout();
return null;
});
export default inject('auth')(Home);