Allows frontend-app-gradebook to be configured at runtime using the LMS's new MFE Configuration API. Part of https://github.com/openedx/frontend-wg/issues/103
37 lines
900 B
JavaScript
Executable File
37 lines
900 B
JavaScript
Executable File
import React from 'react';
|
|
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
|
|
|
|
import { AppProvider } from '@edx/frontend-platform/react';
|
|
|
|
import Footer from '@edx/frontend-component-footer';
|
|
import Header from '@edx/frontend-component-header';
|
|
|
|
import { routePath } from 'data/constants/app';
|
|
import store from 'data/store';
|
|
import GradebookPage from 'containers/GradebookPage';
|
|
import './App.scss';
|
|
import Head from './head/Head';
|
|
|
|
const App = () => (
|
|
<AppProvider store={store}>
|
|
<Head />
|
|
<Router>
|
|
<div>
|
|
<Header />
|
|
<main>
|
|
<Switch>
|
|
<Route
|
|
exact
|
|
path={routePath}
|
|
component={GradebookPage}
|
|
/>
|
|
</Switch>
|
|
</main>
|
|
<Footer logo={process.env.LOGO_POWERED_BY_OPEN_EDX_URL_SVG} />
|
|
</div>
|
|
</Router>
|
|
</AppProvider>
|
|
);
|
|
|
|
export default App;
|