Browse Source

Remove legacy decorators syntax

closed-social-glitch-2
欧醚 1 year ago
parent
commit
f7074db8e2
2 changed files with 4 additions and 2 deletions
  1. +2
    -1
      app/javascript/flavours/glitch/components/status_with_comments.jsx
  2. +2
    -1
      app/javascript/flavours/glitch/features/explore/news_bot_statuses.jsx

+ 2
- 1
app/javascript/flavours/glitch/components/status_with_comments.jsx View File

@ -19,7 +19,6 @@ const mapStateToProps = (state, { id }) => {
const N = 3; const N = 3;
export default @connect(mapStateToProps)
class StatusWithComments extends ImmutablePureComponent { class StatusWithComments extends ImmutablePureComponent {
state = { state = {
@ -83,3 +82,5 @@ class StatusWithComments extends ImmutablePureComponent {
} }
} }
export default connect(mapStateToProps)(StatusWithComments);

+ 2
- 1
app/javascript/flavours/glitch/features/explore/news_bot_statuses.jsx View File

@ -16,7 +16,6 @@ const mapStateToProps = (state, { accountId }) => {
}; };
export default @connect(mapStateToProps)
class NewsBotStatuses extends React.PureComponent { class NewsBotStatuses extends React.PureComponent {
static propTypes = { static propTypes = {
@ -53,3 +52,5 @@ class NewsBotStatuses extends React.PureComponent {
} }
} }
export default connect(mapStateToProps)(NewsBotStatuses);

Loading…
Cancel
Save