The code powering m.abunchtell.com https://m.abunchtell.com
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

17 řádky
523 B

  1. import { List as ImmutableList } from 'immutable';
  2. import { STORE_HYDRATE } from '../actions/store';
  3. import { emojiIndex } from 'emoji-mart';
  4. import { buildCustomEmojis } from '../emoji';
  5. const initialState = ImmutableList();
  6. export default function custom_emojis(state = initialState, action) {
  7. switch(action.type) {
  8. case STORE_HYDRATE:
  9. emojiIndex.search('', { custom: buildCustomEmojis(action.state.get('custom_emojis', [])) });
  10. return action.state.get('custom_emojis');
  11. default:
  12. return state;
  13. }
  14. };