From 96aa78c9713580d087f877dcb95df2ec6d366cee Mon Sep 17 00:00:00 2001
From: Reed Garmsen <rgarmsen2295@gmail.com>
Date: Wed, 2 Sep 2015 13:00:35 -0700
Subject: Fixed some react warnings involving missing keys in render arrays

---
 web/react/components/user_settings_appearance.jsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'web/react/components/user_settings_appearance.jsx')

diff --git a/web/react/components/user_settings_appearance.jsx b/web/react/components/user_settings_appearance.jsx
index 55ccc8efb..3afdd7349 100644
--- a/web/react/components/user_settings_appearance.jsx
+++ b/web/react/components/user_settings_appearance.jsx
@@ -90,6 +90,7 @@ export default class UserSettingsAppearance extends React.Component {
                 for (var i = 0; i < config.ThemeColors.length; i++) {
                     themeButtons.push(
                         <button
+                            key={config.ThemeColors[i] + 'key' + i}
                             ref={config.ThemeColors[i]}
                             type='button'
                             className='btn btn-lg color-btn'
@@ -102,7 +103,10 @@ export default class UserSettingsAppearance extends React.Component {
                 var inputs = [];
 
                 inputs.push(
-                    <li className='setting-list-item'>
+                    <li
+                        key='themeColorSetting'
+                        className='setting-list-item'
+                    >
                         <div
                             className='btn-group'
                             data-toggle='buttons-radio'
-- 
cgit v1.2.3-1-g7c22

