message: fix(BUG): not found is fixed
diff: @@ -4,24 +4,43 @@ import ROUTES from 'constants/routes';
  import AppLayout from 'container/AppLayout';
  import history from 'lib/history';
  import React, { Suspense } from 'react';
  +import { useSelector } from 'react-redux';
  import { Redirect, Route, Router, Switch } from 'react-router-dom';
  +import { AppState } from 'store/reducers';
  +import AppReducer from 'types/reducer/app';
  import routes from './routes';
  -const App = (): JSX.Element => (
  +
  +const App = (): JSX.Element => {
  + const { isLoggedIn } = useSelector<AppState, AppReducer>((state) => state.app);
  +
  + return (
  <Router history={history}>
  <AppLayout>
  <Suspense fallback={<Spinner size="large" tip="Loading..." />}>
  <Switch>
  - {routes.map(({ path, component, exact }) => (
  - <Route key={`${path}`} exact={exact} path={path} component={component} />
  + {routes.map(({ path, component, exact }, index) => (
  + <Route key={index} exact={exact} path={path} component={component} />
  ))}
  - <Redirect from="/" to={ROUTES.APPLICATION} />
  - <Route component={NotFound} />
  + <Route
  + path="/"
  + exact
  + render={(): JSX.Element =>
  + isLoggedIn ? (
  + <Redirect to={ROUTES.APPLICATION} />
  + ) : (
  + <Redirect to={ROUTES.SIGN_UP} />
  + )
  + }
  + />
  + <Route path="*" component={NotFound} />
  </Switch>
  </Suspense>
  </AppLayout>
  </Router>
  );
  +};
  +
  export default App;
  