mattermost-mobile/app/reducers/views/emoji.js
2018-06-19 19:14:50 -04:00

23 lines
567 B
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {combineReducers} from 'redux';
import {UserTypes} from 'mattermost-redux/action_types';
import {ViewTypes} from 'app/constants';
function emojiPickerCustomPage(state = 0, action) {
switch (action.type) {
case ViewTypes.INCREMENT_EMOJI_PICKER_PAGE:
return state + 1;
case UserTypes.LOGOUT_SUCCESS:
return 0;
default:
return state;
}
}
export default combineReducers({
emojiPickerCustomPage,
});