PromucFlow_constructor/app/client/src/App.tsx

12 lines
348 B
TypeScript
Raw Normal View History

import React from "react";
import { Redirect } from "react-router-dom";
import { useSelector } from "store";
import { APPLICATIONS_URL } from "constants/routes";
2019-12-03 09:21:06 +00:00
export const App = () => {
const currentUser = useSelector(state => state.ui.users.current);
return currentUser ? <Redirect to={APPLICATIONS_URL} /> : null;
};
2019-01-21 15:11:10 +00:00
export default App;