mirror of
https://github.com/wassname/talk.git
synced 2026-07-21 12:51:03 +08:00
10 lines
279 B
JavaScript
10 lines
279 B
JavaScript
import * as actions from '../constants/embed';
|
|
import {viewAllComments} from './stream';
|
|
|
|
export const setActiveTab = (tab) => (dispatch, getState) => {
|
|
dispatch({type: actions.SET_ACTIVE_TAB, tab});
|
|
if (getState().stream.commentId) {
|
|
dispatch(viewAllComments());
|
|
}
|
|
};
|