Cleanup unneccessary folders.
Add delete account modal
This commit is contained in:
17
app/scenes/Home.js
Normal file
17
app/scenes/Home.js
Normal 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);
|
||||
Reference in New Issue
Block a user