gab-social/app/javascript/gabsocial/actions/emojis.js

13 lines
213 B
JavaScript
Raw Normal View History

2020-11-15 18:48:32 +00:00
import { saveSettings } from './settings'
2019-07-02 08:10:25 +01:00
2020-11-15 18:48:32 +00:00
export const EMOJI_USE = 'EMOJI_USE'
2019-07-02 08:10:25 +01:00
2020-11-15 18:48:32 +00:00
export const useEmoji = (emoji) => (dispatch) => {
dispatch({
type: EMOJI_USE,
emoji,
});
2019-07-02 08:10:25 +01:00
2020-11-15 18:48:32 +00:00
dispatch(saveSettings())
}