From 96aa78c9713580d087f877dcb95df2ec6d366cee Mon Sep 17 00:00:00 2001 From: Reed Garmsen Date: Wed, 2 Sep 2015 13:00:35 -0700 Subject: Fixed some react warnings involving missing keys in render arrays --- web/react/components/access_history_modal.jsx | 5 ++++- web/react/components/activity_log_modal.jsx | 5 ++++- web/react/components/navbar.jsx | 3 +++ web/react/components/post_list.jsx | 2 +- web/react/components/rhs_thread.jsx | 2 +- web/react/components/user_settings_appearance.jsx | 6 +++++- web/react/components/user_settings_security.jsx | 20 ++++++++++++++++---- 7 files changed, 34 insertions(+), 9 deletions(-) (limited to 'web') diff --git a/web/react/components/access_history_modal.jsx b/web/react/components/access_history_modal.jsx index 9c8e7c6c3..a080150dd 100644 --- a/web/react/components/access_history_modal.jsx +++ b/web/react/components/access_history_modal.jsx @@ -89,7 +89,10 @@ export default class AccessHistoryModal extends React.Component { } accessList[i] = ( -
+
{newDate}
{newHistoryDate.toLocaleTimeString(navigator.language, {hour: '2-digit', minute: '2-digit'})}
diff --git a/web/react/components/activity_log_modal.jsx b/web/react/components/activity_log_modal.jsx index 2a83b3c40..7cbd4021e 100644 --- a/web/react/components/activity_log_modal.jsx +++ b/web/react/components/activity_log_modal.jsx @@ -102,7 +102,10 @@ export default class ActivityLogModal extends React.Component { } activityList[i] = ( -
+
{currentSession.props.platform}
diff --git a/web/react/components/navbar.jsx b/web/react/components/navbar.jsx index d6cf4f9d6..2258bf2b3 100644 --- a/web/react/components/navbar.jsx +++ b/web/react/components/navbar.jsx @@ -274,6 +274,7 @@ export default class Navbar extends React.Component { if (currentId == null) { buttons.push(