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/components/icon_button.js | |
parent | 0c44316b22c3711ad5369dae2f66f0fd5c79799e (diff) |
Use Class and Property Decorators (#3730)
ref https://tc39.github.io/proposal-decorators/
Diffstat (limited to 'app/javascript/mastodon/components/icon_button.js')
-rw-r--r-- | app/javascript/mastodon/components/icon_button.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/javascript/mastodon/components/icon_button.js b/app/javascript/mastodon/components/icon_button.js index 302e63df5..ac734f5ad 100644 --- a/app/javascript/mastodon/components/icon_button.js +++ b/app/javascript/mastodon/components/icon_button.js @@ -3,7 +3,7 @@ import Motion from 'react-motion/lib/Motion'; import spring from 'react-motion/lib/spring'; import PropTypes from 'prop-types'; -class IconButton extends React.PureComponent { +export default class IconButton extends React.PureComponent { static propTypes = { className: PropTypes.string, @@ -86,5 +86,3 @@ class IconButton extends React.PureComponent { } } - -export default IconButton; |