import React from 'react'; import { Switch, useRouteMatch } from 'react-router'; import { getConfig } from '@edx/frontend-platform'; import { FormattedMessage } from '@edx/frontend-platform/i18n'; import { PageRoute } from '@edx/frontend-platform/react'; import PageLoading from '../generic/PageLoading'; import CoursewareRedirect from './CoursewareRedirect'; export default () => { const { path } = useRouteMatch(); return (
)} /> { global.location.assign(`${getConfig().LMS_BASE_URL}/courses/${match.params.courseId}/course/`); }} /> { global.location.assign(`${getConfig().LMS_BASE_URL}/dashboard${location.search}`); }} />
); };