From 3601eacb1d3ba3de1bc5cec2feaff4c6a94762af Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Fri, 20 Apr 2018 09:47:59 -0400 Subject: [PATCH] Fix propType warnings Including action-menu which was also giving one when the backdrop library opened. Localize the costume library, I missed it while doing the other libraries. --- src/components/action-menu/action-menu.jsx | 4 ++-- src/components/button/button.jsx | 2 +- .../language-selector/language-selector.jsx | 2 +- src/components/library/library.jsx | 2 +- src/containers/backdrop-library.jsx | 19 +++++++++++-------- src/containers/costume-library.jsx | 14 ++++++++++++-- src/containers/sound-library.jsx | 19 +++++++++++-------- src/containers/sprite-library.jsx | 19 +++++++++++-------- 8 files changed, 50 insertions(+), 31 deletions(-) diff --git a/src/components/action-menu/action-menu.jsx b/src/components/action-menu/action-menu.jsx index 0fa100a35..09af880cf 100644 --- a/src/components/action-menu/action-menu.jsx +++ b/src/components/action-menu/action-menu.jsx @@ -137,12 +137,12 @@ class ActionMenu extends React.Component {
{(moreButtons || []).map(({img, title, onClick: handleClick, - fileAccept, fileChange, fileInput}) => { + fileAccept, fileChange, fileInput}, keyId) => { const isComingSoon = !handleClick; const hasFileInput = fileInput; const tooltipId = title; return ( -
+