From d56a3be63bce27a605008c26dea80c9b4389ec69 Mon Sep 17 00:00:00 2001 From: Julien Benchetrit Date: Sun, 24 Nov 2019 19:19:32 +0200 Subject: [PATCH] Maintenance (#2819) * Maintenance * Remove opinionated background from template app (broken by H1 margin anyway) * Fixes and syncs between sample and template apps * Sync 404 page tests between demo and sample apps * More tweaks/syncs between template and sample apps * Test fix --- app/app.js | 2 +- app/components/List/tests/index.test.js | 5 +- app/containers/App/index.js | 2 +- app/containers/App/selectors.js | 20 +- .../tests/__snapshots__/index.test.js.snap | 1 - app/containers/HomePage/selectors.js | 5 +- app/containers/LanguageProvider/index.js | 9 +- app/containers/LanguageProvider/selectors.js | 5 +- app/containers/LocaleToggle/index.js | 9 +- app/containers/NotFoundPage/messages.js | 4 +- app/global-styles.js | 1 + app/i18n.js | 2 +- internals/scripts/clean.js | 1 + internals/templates/app.js | 33 +- internals/templates/containers/App/index.js | 7 +- .../templates/containers/App/selectors.js | 5 +- .../containers/LanguageProvider/index.js | 9 +- .../containers/LanguageProvider/selectors.js | 5 +- .../tests/__snapshots__/index.test.js.snap | 9 - .../NotFoundPage/tests/index.test.js | 19 +- internals/templates/global-styles.js | 1 - internals/templates/i18n.js | 3 +- internals/templates/locales.js | 7 +- package-lock.json | 8275 +++++++++-------- package.json | 76 +- 25 files changed, 4676 insertions(+), 3839 deletions(-) delete mode 100644 internals/templates/containers/NotFoundPage/tests/__snapshots__/index.test.js.snap diff --git a/app/app.js b/app/app.js index 13f7cb0803..846ea655ce 100644 --- a/app/app.js +++ b/app/app.js @@ -8,9 +8,9 @@ import 'react-app-polyfill/ie11'; import 'react-app-polyfill/stable'; -import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom'; +import PropTypes from 'prop-types'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'connected-react-router'; import FontFaceObserver from 'fontfaceobserver'; diff --git a/app/components/List/tests/index.test.js b/app/components/List/tests/index.test.js index d605f0b0de..e7a2fd9b6a 100644 --- a/app/components/List/tests/index.test.js +++ b/app/components/List/tests/index.test.js @@ -11,7 +11,10 @@ describe('', () => { }); it('should pass all items props to rendered component', () => { - const items = [{ id: 1, name: 'Hello' }, { id: 2, name: 'World' }]; + const items = [ + { id: 1, name: 'Hello' }, + { id: 2, name: 'World' }, + ]; const component = ({ item }) =>
  • {item.name}
  • ; // eslint-disable-line react/prop-types diff --git a/app/containers/App/index.js b/app/containers/App/index.js index 8acb27c256..d4d00ec0a8 100644 --- a/app/containers/App/index.js +++ b/app/containers/App/index.js @@ -43,7 +43,7 @@ function App() { - +