From dcecc8bf004395de9196e15ba573ebb9e0be7c77 Mon Sep 17 00:00:00 2001 From: Suzanne Aitchison Date: Wed, 1 Sep 2021 09:27:58 +0100 Subject: [PATCH] Log prop-types warnings to console in development (#14635) * enable debug for warnings in dev env * remove preact/devtools call no longer needed * fix majority of proptype errors on home page * sweep up proptype errors from listings page * fix article form error --- app/javascript/article-form/components/Tabs.jsx | 12 ++++++++---- app/javascript/articles/LoadingArticle.jsx | 2 +- app/javascript/articles/components/PublishDate.jsx | 2 +- .../articles/components/SearchSnippet.jsx | 3 +-- app/javascript/articles/components/TagList.jsx | 6 +++--- .../common-prop-types/article-prop-types.js | 11 +++++++---- app/javascript/common-prop-types/index.js | 1 - app/javascript/common-prop-types/tag-prop-types.js | 10 ---------- app/javascript/crayons/Button/Button.jsx | 13 ++++++++----- app/javascript/crayons/Modal/Modal.jsx | 6 +++++- app/javascript/leftSidebar/TagsFollowed.jsx | 14 ++++++++++---- .../listings/components/ListingFilters.jsx | 10 ++++++---- app/javascript/listings/singleListing/Header.jsx | 5 ++++- .../shared/components/useKeyboardShortcuts.js | 5 ++++- config/webpack/development.js | 5 +++-- 15 files changed, 61 insertions(+), 44 deletions(-) delete mode 100644 app/javascript/common-prop-types/tag-prop-types.js diff --git a/app/javascript/article-form/components/Tabs.jsx b/app/javascript/article-form/components/Tabs.jsx index 9f0201462..a36a195aa 100644 --- a/app/javascript/article-form/components/Tabs.jsx +++ b/app/javascript/article-form/components/Tabs.jsx @@ -10,11 +10,13 @@ export const Tabs = ({ onPreview, previewShowing }) => {