From 22b62ff446099a2ced64bc7d7fe2c08b8095260d Mon Sep 17 00:00:00 2001 From: KMY Date: Mon, 24 Jun 2024 08:53:14 +0900 Subject: [PATCH] Fix lint --- .../features/compose/components/expiration_dropdown.jsx | 2 +- .../features/compose/components/featured_tags_dropdown.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/features/compose/components/expiration_dropdown.jsx b/app/javascript/mastodon/features/compose/components/expiration_dropdown.jsx index dc0a268bb8..b61362a892 100644 --- a/app/javascript/mastodon/features/compose/components/expiration_dropdown.jsx +++ b/app/javascript/mastodon/features/compose/components/expiration_dropdown.jsx @@ -209,7 +209,7 @@ class ExpirationDropdown extends PureComponent { this.props.onChange(value); }; - componentWillMount () { + UNSAFE_componentWillMount () { const { intl } = this.props; this.options = [ diff --git a/app/javascript/mastodon/features/compose/components/featured_tags_dropdown.jsx b/app/javascript/mastodon/features/compose/components/featured_tags_dropdown.jsx index c8bf2b677b..7135520096 100644 --- a/app/javascript/mastodon/features/compose/components/featured_tags_dropdown.jsx +++ b/app/javascript/mastodon/features/compose/components/featured_tags_dropdown.jsx @@ -203,7 +203,7 @@ class FeaturedTagsDropdown extends PureComponent { this.props.onChange(value); }; - componentWillMount () { + UNSAFE_componentWillMount () { this.options = featuredTags.map((tag) => { return { value: `#${tag}`, text: `#${tag}` }; });