* feat: use frontend-analytics directly BREAKING CHANGE: handleAllTrackEvents is no longer part of the Footer props API. The footer uses frontend-analytics’s sendTrackEvent directly. Also updating other dependencies to keep them up to date. This part should probably be a separate PR, technically. * fix: remove unused dependency of frontend-logging * fix: a little PR cleanup * fix: putting frontend logging back It’s needed by frontend-i18n and fails if it’s not there for tests. * fix: pinning npm at 6
23 lines
515 B
JavaScript
23 lines
515 B
JavaScript
import React from 'react';
|
|
import { render } from 'react-dom';
|
|
import { IntlProvider } from '@edx/frontend-i18n';
|
|
|
|
import './index.scss';
|
|
import Footer from '../src';
|
|
|
|
const App = () => (
|
|
<div>
|
|
<IntlProvider locale="en">
|
|
<Footer
|
|
onLanguageSelected={(languageCode) => {}}
|
|
supportedLanguages={[
|
|
{ label: 'English', value: 'en' },
|
|
{ label: 'Español', value: 'es' },
|
|
]}
|
|
/>
|
|
</IntlProvider>
|
|
</div>
|
|
);
|
|
|
|
render(<App />, document.getElementById('root'));
|