diff options
author | neatchee <neatchee@gmail.com> | 2023-03-24 15:15:25 -0700 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2023-03-27 08:51:57 +0200 |
commit | 8215df76c070f7d400a6091fcb1c0f6ff78474a0 (patch) | |
tree | dc8aa1aa2449f54b530df0b251f7d126df0e525f /app/javascript/flavours/glitch/features/picture_in_picture/components | |
parent | 00c839b9a912ee495d344d61a5c7f26ca133e13d (diff) |
[Glitch] Remove legacy decorators syntax
Port d1b057a0ac41a5756b6a416d2f290b086cb59220 to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/features/picture_in_picture/components')
-rw-r--r-- | app/javascript/flavours/glitch/features/picture_in_picture/components/footer.jsx | 4 | ||||
-rw-r--r-- | app/javascript/flavours/glitch/features/picture_in_picture/components/header.jsx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/javascript/flavours/glitch/features/picture_in_picture/components/footer.jsx b/app/javascript/flavours/glitch/features/picture_in_picture/components/footer.jsx index bc312d530..51fe023d3 100644 --- a/app/javascript/flavours/glitch/features/picture_in_picture/components/footer.jsx +++ b/app/javascript/flavours/glitch/features/picture_in_picture/components/footer.jsx @@ -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)); diff --git a/app/javascript/flavours/glitch/features/picture_in_picture/components/header.jsx b/app/javascript/flavours/glitch/features/picture_in_picture/components/header.jsx index 26f2da374..b9b90f1d8 100644 --- a/app/javascript/flavours/glitch/features/picture_in_picture/components/header.jsx +++ b/app/javascript/flavours/glitch/features/picture_in_picture/components/header.jsx @@ -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)); |