mirror of
https://github.com/wassname/talk.git
synced 2026-07-22 13:00:29 +08:00
10 lines
281 B
JavaScript
10 lines
281 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());
|
|
}
|
|
};
|