about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/direct_timeline
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-09-09 15:16:08 +0200
committermultiple creatures <dev@multiple-creature.party>2020-02-21 04:41:38 -0600
commit257b72dc1025e7102cc02f30640fc3d482103d65 (patch)
tree8c3345ac724a969d9152e57748a3bc3f435ed540 /app/javascript/flavours/glitch/features/direct_timeline
parentbbbbfbc1a25496bb8fb53a1eb5027332664a14ca (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/direct_timeline')
-rw-r--r--app/javascript/flavours/glitch/features/direct_timeline/components/column_settings.js4
-rw-r--r--app/javascript/flavours/glitch/features/direct_timeline/index.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/app/javascript/flavours/glitch/features/direct_timeline/components/column_settings.js b/app/javascript/flavours/glitch/features/direct_timeline/components/column_settings.js
index 5adb44f2c..ce14e2a9d 100644
--- a/app/javascript/flavours/glitch/features/direct_timeline/components/column_settings.js
+++ b/app/javascript/flavours/glitch/features/direct_timeline/components/column_settings.js
@@ -9,8 +9,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/direct_timeline/index.js b/app/javascript/flavours/glitch/features/direct_timeline/index.js
index 6fe8a1ce8..e2c0a439a 100644
--- a/app/javascript/flavours/glitch/features/direct_timeline/index.js
+++ b/app/javascript/flavours/glitch/features/direct_timeline/index.js
@@ -22,9 +22,9 @@ const mapStateToProps = state => ({
   conversationsMode: state.getIn(['settings', 'direct', 'conversations']),
 });
 
-@connect(mapStateToProps)
+export default @connect(mapStateToProps)
 @injectIntl
-export default class DirectTimeline extends React.PureComponent {
+class DirectTimeline extends React.PureComponent {
 
   static propTypes = {
     dispatch: PropTypes.func.isRequired,