import React from 'react'; import { Route, Switch, useRouteMatch } from 'react-router-dom'; import LoginContainer from '@/components/auth/LoginContainer'; import ForgotPasswordContainer from '@/components/auth/ForgotPasswordContainer'; import ResetPasswordContainer from '@/components/auth/ResetPasswordContainer'; import LoginCheckpointContainer from '@/components/auth/LoginCheckpointContainer'; import { NotFound } from '@/components/elements/ScreenBlock'; import { useHistory, useLocation } from 'react-router'; export default () => { const history = useHistory(); const location = useLocation(); const { path } = useRouteMatch(); return (
history.push('/auth/login')}/>
); };