summaryrefslogtreecommitdiffstats
path: root/webapp/components/suggestion/suggestion_list.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/suggestion/suggestion_list.jsx')
-rw-r--r--webapp/components/suggestion/suggestion_list.jsx10
1 files changed, 7 insertions, 3 deletions
diff --git a/webapp/components/suggestion/suggestion_list.jsx b/webapp/components/suggestion/suggestion_list.jsx
index 7774f9a7d..134e7a8d4 100644
--- a/webapp/components/suggestion/suggestion_list.jsx
+++ b/webapp/components/suggestion/suggestion_list.jsx
@@ -117,11 +117,14 @@ export default class SuggestionList extends React.Component {
);
}
+ const mainClass = 'suggestion-list suggestion-list--' + this.props.location;
+ const contentClass = 'suggestion-list__content suggestion-list__content--' + this.props.location;
+
return (
- <div className='suggestion-list suggestion-list--top'>
+ <div className={mainClass}>
<div
ref='content'
- className='suggestion-list__content suggestion-list__content--top'
+ className={contentClass}
>
{items}
</div>
@@ -131,5 +134,6 @@ export default class SuggestionList extends React.Component {
}
SuggestionList.propTypes = {
- suggestionId: React.PropTypes.string.isRequired
+ suggestionId: React.PropTypes.string.isRequired,
+ location: React.PropTypes.string
};