Remove legacy decorators syntax (#18357)

This commit is contained in:
Yamagishi Kazutoshi 2023-03-24 11:17:53 +09:00 committed by GitHub
parent 503022d6f9
commit d1b057a0ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
137 changed files with 396 additions and 236 deletions

View file

@ -43,7 +43,6 @@ class InlineAlert extends React.PureComponent {
}
export default @injectIntl
class AccountNote extends ImmutablePureComponent {
static propTypes = {
@ -168,3 +167,5 @@ class AccountNote extends ImmutablePureComponent {
}
}
export default injectIntl(AccountNote);

View file

@ -10,7 +10,6 @@ const messages = defineMessages({
empty: { id: 'account.featured_tags.last_status_never', defaultMessage: 'No posts' },
});
export default @injectIntl
class FeaturedTags extends ImmutablePureComponent {
static contextTypes = {
@ -50,3 +49,5 @@ class FeaturedTags extends ImmutablePureComponent {
}
}
export default injectIntl(FeaturedTags);

View file

@ -76,7 +76,6 @@ const dateFormatOptions = {
minute: '2-digit',
};
export default @injectIntl
class Header extends ImmutablePureComponent {
static contextTypes = {
@ -419,3 +418,5 @@ class Header extends ImmutablePureComponent {
}
}
export default injectIntl(Header);

View file

@ -19,7 +19,6 @@ const mapStateToProps = (state, { match: { params: { acct } } }) => {
};
};
export default @connect(mapStateToProps)
class AccountNavigation extends React.PureComponent {
static propTypes = {
@ -50,3 +49,5 @@ class AccountNavigation extends React.PureComponent {
}
}
export default connect(mapStateToProps)(AccountNavigation);