cleanup frontend emoji reaction code
This commit is contained in:
parent
1b3305c3db
commit
d249994de8
11 changed files with 64 additions and 71 deletions
|
|
@ -1,11 +0,0 @@
|
|||
import { createSelector } from 'reselect';
|
||||
import { Map as ImmutableMap } from 'immutable';
|
||||
|
||||
const buildCustomEmojiMap = createSelector(
|
||||
[state => state.get('custom_emojis')],
|
||||
items => items.reduce(
|
||||
(map, emoji) => map.set(emoji.get('shortcode'), emoji),
|
||||
ImmutableMap(),
|
||||
),
|
||||
);
|
||||
export default buildCustomEmojiMap;
|
||||
Loading…
Add table
Add a link
Reference in a new issue