diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-09-09 15:16:08 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2019-09-09 18:36:43 +0200 |
commit | f2b307af25ca53f062f1a9e50dc1724b7550fd71 (patch) | |
tree | 203bc24a72f1fae273ae805e99a99b791035eb16 /app/javascript/flavours/glitch/features/community_timeline | |
parent | 0014a32c19bb6d3ab83aad65506f6b1cf66f93a9 (diff) |
Move “export” before decorators
As this is what upstream does. See also https://github.com/tc39/proposal-decorators/issues/69
Diffstat (limited to 'app/javascript/flavours/glitch/features/community_timeline')
-rw-r--r-- | app/javascript/flavours/glitch/features/community_timeline/components/column_settings.js | 4 | ||||
-rw-r--r-- | app/javascript/flavours/glitch/features/community_timeline/index.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/javascript/flavours/glitch/features/community_timeline/components/column_settings.js b/app/javascript/flavours/glitch/features/community_timeline/components/column_settings.js index 72828967f..69a4699ac 100644 --- a/app/javascript/flavours/glitch/features/community_timeline/components/column_settings.js +++ b/app/javascript/flavours/glitch/features/community_timeline/components/column_settings.js @@ -10,8 +10,8 @@ const messages = defineMessages({ settings: { id: 'home.settings', defaultMessage: 'Column settings' }, }); -@injectIntl -export default class ColumnSettings extends React.PureComponent { +export default @injectIntl +class ColumnSettings extends React.PureComponent { static propTypes = { settings: ImmutablePropTypes.map.isRequired, diff --git a/app/javascript/flavours/glitch/features/community_timeline/index.js b/app/javascript/flavours/glitch/features/community_timeline/index.js index 24126e5bc..cb7d72c53 100644 --- a/app/javascript/flavours/glitch/features/community_timeline/index.js +++ b/app/javascript/flavours/glitch/features/community_timeline/index.js @@ -25,9 +25,9 @@ const mapStateToProps = (state, { onlyMedia, columnId }) => { }; }; -@connect(mapStateToProps) +export default @connect(mapStateToProps) @injectIntl -export default class CommunityTimeline extends React.PureComponent { +class CommunityTimeline extends React.PureComponent { static defaultProps = { onlyMedia: false, |