[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

@@ -11,7 +11,6 @@ const mapStateToProps = (state, { statusId }) => ({
accountStaticAvatar: state.getIn(['accounts', state.getIn(['statuses', statusId, 'account']), 'avatar_static']),
});
export default @connect(mapStateToProps, null, null, { forwardRef: true })
class AudioModal extends ImmutablePureComponent {
static propTypes = {
@@ -59,3 +58,5 @@ class AudioModal extends ImmutablePureComponent {
}
}
export default connect(mapStateToProps, null, null, { forwardRef: true })(AudioModal);