Move “export” before decorators

As this is what upstream does.

See also https://github.com/tc39/proposal-decorators/issues/69
This commit is contained in:
Thibaut Girka
2019-09-09 15:16:08 +02:00
committed by ThibG
parent 0014a32c19
commit f2b307af25
59 changed files with 118 additions and 118 deletions

View File

@@ -14,8 +14,8 @@ const messages = defineMessages({
markForDeletion: { id: 'notification.markForDeletion', defaultMessage: 'Mark for deletion' },
});
@injectIntl
export default class NotificationOverlay extends ImmutablePureComponent {
export default @injectIntl
class NotificationOverlay extends ImmutablePureComponent {
static propTypes = {
notification : ImmutablePropTypes.map.isRequired,

View File

@@ -67,9 +67,9 @@ const mapDispatchToProps = dispatch => ({
dispatch,
});
@connect(mapStateToProps, mapDispatchToProps)
export default @connect(mapStateToProps, mapDispatchToProps)
@injectIntl
export default class Notifications extends React.PureComponent {
class Notifications extends React.PureComponent {
static propTypes = {
columnId: PropTypes.string,