summaryrefslogtreecommitdiffstats
path: root/webapp/components/user_list_row.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-03-22 08:08:46 -0700
committerCorey Hulen <corey@hulen.com>2016-03-22 08:08:46 -0700
commit6568e15023c009c96a46f022236f5fd4415445c0 (patch)
treef17fd6d8fce9feb44adc17a4880a4f7dc5cb6897 /webapp/components/user_list_row.jsx
parentbb212949f9f90ea3f4f7c07c7e3ca624c2843a90 (diff)
parent4e3eb2bb181ff6baad9911e231558eee0a08291c (diff)
downloadchat-6568e15023c009c96a46f022236f5fd4415445c0.tar.gz
chat-6568e15023c009c96a46f022236f5fd4415445c0.tar.bz2
chat-6568e15023c009c96a46f022236f5fd4415445c0.zip
Merge pull request #2498 from hmhealey/plt2285
PLT-2285 Adding spinner after clicking invite channel member button
Diffstat (limited to 'webapp/components/user_list_row.jsx')
-rw-r--r--webapp/components/user_list_row.jsx9
1 files changed, 6 insertions, 3 deletions
diff --git a/webapp/components/user_list_row.jsx b/webapp/components/user_list_row.jsx
index ed3a29a61..f6fd91688 100644
--- a/webapp/components/user_list_row.jsx
+++ b/webapp/components/user_list_row.jsx
@@ -6,7 +6,7 @@ import PreferenceStore from 'stores/preference_store.jsx';
import * as Utils from 'utils/utils.jsx';
import React from 'react';
-export default function UserListRow({user, actions}) {
+export default function UserListRow({user, actions, actionProps}) {
const nameFormat = PreferenceStore.get(Constants.Preferences.CATEGORY_DISPLAY_SETTINGS, 'name_format', '');
let name = user.username;
@@ -21,6 +21,7 @@ export default function UserListRow({user, actions}) {
<Action
key={index.toString()}
user={user}
+ {...actionProps}
/>
);
});
@@ -56,10 +57,12 @@ export default function UserListRow({user, actions}) {
}
UserListRow.defaultProps = {
- actions: []
+ actions: [],
+ actionProps: {}
};
UserListRow.propTypes = {
user: React.PropTypes.object.isRequired,
- actions: React.PropTypes.arrayOf(React.PropTypes.func)
+ actions: React.PropTypes.arrayOf(React.PropTypes.func),
+ actionProps: React.PropTypes.object
};