[Glitch] Remove legacy decorators syntax

Port d1b057a0ac to glitch-soc
This commit is contained in:
neatchee authored and Claire committed 2023-03-27 08:51:57 +02:00
1 parent 00c839b9a9
commit 8215df76c0
146 files changed
+309 -216

No files matched your search

@@ -93,9 +93,6 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
});
export default
@injectIntl
@connect(makeMapStateToProps, mapDispatchToProps)
class AccountCard extends ImmutablePureComponent {
static propTypes = {
@@ -246,3 +243,5 @@ class AccountCard extends ImmutablePureComponent {
}
}
export default injectIntl(connect(makeMapStateToProps, mapDispatchToProps)(AccountCard));
@@ -29,8 +29,6 @@ const mapStateToProps = state => ({
domain: state.getIn(['meta', 'domain']),
});
export default @connect(mapStateToProps)
@injectIntl
class Directory extends React.PureComponent {
static contextTypes = {
@@ -176,3 +174,5 @@ class Directory extends React.PureComponent {
}
}
export default connect(mapStateToProps)(injectIntl(Directory));