[Glitch] Remove legacy decorators syntax

Port d1b057a0ac to glitch-soc
This commit is contained in:
neatchee
2023-03-24 15:15:25 -07:00
committed by Claire
parent 00c839b9a9
commit 8215df76c0
146 changed files with 309 additions and 216 deletions

View File

@ -38,8 +38,6 @@ const makeMapStateToProps = () => {
return mapStateToProps;
};
export default @connect(makeMapStateToProps)
@injectIntl
class Footer extends ImmutablePureComponent {
static contextTypes = {
@ -215,3 +213,5 @@ class Footer extends ImmutablePureComponent {
}
}
export default connect(makeMapStateToProps)(injectIntl(Footer));

View File

@ -17,8 +17,6 @@ const mapStateToProps = (state, { accountId }) => ({
account: state.getIn(['accounts', accountId]),
});
export default @connect(mapStateToProps)
@injectIntl
class Header extends ImmutablePureComponent {
static propTypes = {
@ -45,3 +43,5 @@ class Header extends ImmutablePureComponent {
}
}
export default connect(mapStateToProps)(injectIntl(Header));