diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-06-24 02:36:54 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-06-23 19:36:54 +0200 |
commit | c1a8e3d1ebaa6d69e1ae23369a5dedd93ba7226f (patch) | |
tree | e5744319ef50b1ddbb9557d4a2d9fa891ca24385 /app/javascript/mastodon/features/ui/components/boost_modal.js | |
parent | 0c44316b22c3711ad5369dae2f66f0fd5c79799e (diff) |
Use Class and Property Decorators (#3730)
ref https://tc39.github.io/proposal-decorators/
Diffstat (limited to 'app/javascript/mastodon/features/ui/components/boost_modal.js')
-rw-r--r-- | app/javascript/mastodon/features/ui/components/boost_modal.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/javascript/mastodon/features/ui/components/boost_modal.js b/app/javascript/mastodon/features/ui/components/boost_modal.js index 9a8b96333..6c80a1084 100644 --- a/app/javascript/mastodon/features/ui/components/boost_modal.js +++ b/app/javascript/mastodon/features/ui/components/boost_modal.js @@ -13,7 +13,8 @@ const messages = defineMessages({ reblog: { id: 'status.reblog', defaultMessage: 'Boost' }, }); -class BoostModal extends ImmutablePureComponent { +@injectIntl +export default class BoostModal extends ImmutablePureComponent { static contextTypes = { router: PropTypes.object, @@ -81,5 +82,3 @@ class BoostModal extends ImmutablePureComponent { } } - -export default injectIntl(BoostModal); |