diff --git a/src/Toolbar.jsx b/src/Toolbar.jsx
index df9e3fb65..5964833bb 100644
--- a/src/Toolbar.jsx
+++ b/src/Toolbar.jsx
@@ -41,14 +41,7 @@ let Toolbar = React.createClass({
{
- viewNames.map(name =>
-
- )
+ this.viewNamesGroup(messages)
}
@@ -61,6 +54,25 @@ let Toolbar = React.createClass({
view(view){
this.props.onViewChange(view)
+ },
+
+ viewNamesGroup(messages) {
+ let component = null
+ let viewNames = this.props.views
+ const view = this.props.view
+
+ if (viewNames.length > 1) {
+ return (
+ viewNames.map(name =>
+
+ )
+ )
+ }
}
});