diff --git a/client/coral-embed-stream/src/CommentStream.js b/client/coral-embed-stream/src/CommentStream.js
index b78e15492..26e8177e5 100644
--- a/client/coral-embed-stream/src/CommentStream.js
+++ b/client/coral-embed-stream/src/CommentStream.js
@@ -52,7 +52,7 @@ const mapDispatchToProps = (dispatch) => ({
appendItemArray: (item, property, value, addToFront, itemType) =>
dispatch(appendItemArray(item, property, value, addToFront, itemType)),
logout: () => dispatch(logout()),
- changeTab: tab => dispatch(changeTab(tab))
+ changeTab: activeTab => dispatch(changeTab(activeTab))
});
class CommentStream extends Component {
@@ -92,19 +92,18 @@ class CommentStream extends Component {
const rootItem = this.props.items.assets && this.props.items.assets[rootItemId];
const {actions, users, comments} = this.props.items;
const {loggedIn, user, showSignInDialog} = this.props.auth;
- const {changeTab} = this.props.embedStream;
-
+ const {activeTab} = this.props.embedStream;
return
{
rootItem
?
-
+
Settings
-
+
diff --git a/client/coral-framework/actions/embedStream.js b/client/coral-framework/actions/embedStream.js
index d474b0af0..f50e4f506 100644
--- a/client/coral-framework/actions/embedStream.js
+++ b/client/coral-framework/actions/embedStream.js
@@ -1,10 +1,10 @@
import {base, handleResp, getInit} from '../helpers/response';
import * as actions from '../constants/embedStream';
-export const changeTab = view => dispatch =>
+export const changeTab = activeTab => dispatch =>
dispatch({
type: actions.CHANGE_TAB,
- view
+ activeTab
});
const userBioRequest = () => ({type: actions.FETCH_USER_BIO_REQUEST});
diff --git a/client/coral-framework/reducers/embedStream.js b/client/coral-framework/reducers/embedStream.js
index 0cc0078ca..2d235ebab 100644
--- a/client/coral-framework/reducers/embedStream.js
+++ b/client/coral-framework/reducers/embedStream.js
@@ -2,14 +2,14 @@ import {Map} from 'immutable';
import * as actions from '../constants/embedStream';
const initialState = Map({
- tab: 'COMMENT_BOX'
+ activeTab: 0
});
export default function embedStream (state = initialState, action) {
switch (action.type) {
case actions.CHANGE_TAB :
return state
- .set('tab', action.tab);
+ .set('activeTab', action.activeTab);
default :
return state;
}