about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-06-24 02:36:54 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-06-23 19:36:54 +0200
commitc1a8e3d1ebaa6d69e1ae23369a5dedd93ba7226f (patch)
treee5744319ef50b1ddbb9557d4a2d9fa891ca24385 /app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
parent0c44316b22c3711ad5369dae2f66f0fd5c79799e (diff)
Use Class and Property Decorators (#3730)
ref https://tc39.github.io/proposal-decorators/
Diffstat (limited to 'app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js')
-rw-r--r--app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js b/app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
index afaff1be1..c83dbb63e 100644
--- a/app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
+++ b/app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
@@ -24,7 +24,8 @@ const settings = {
 
 let EmojiPicker; // load asynchronously
 
-class EmojiPickerDropdown extends React.PureComponent {
+@injectIntl
+export default class EmojiPickerDropdown extends React.PureComponent {
 
   static propTypes = {
     intl: PropTypes.object.isRequired,
@@ -123,5 +124,3 @@ class EmojiPickerDropdown extends React.PureComponent {
   }
 
 }
-
-export default injectIntl(EmojiPickerDropdown);