Use the new JSX transform (#25064)

This commit is contained in:
Renaud Chaput
2023-05-23 10:52:27 +02:00
committed by GitHub
parent e387175fc9
commit 8f66126b10
241 changed files with 366 additions and 473 deletions

View File

@@ -1,9 +1,9 @@
import React from 'react';
import { PureComponent } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { Check } from 'mastodon/components/check';
export default class Option extends React.PureComponent {
export default class Option extends PureComponent {
static propTypes = {
name: PropTypes.string.isRequired,

View File

@@ -1,4 +1,4 @@
import React from 'react';
import { PureComponent } from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusContent from 'mastodon/components/status_content';
@@ -17,7 +17,7 @@ const messages = defineMessages({
direct_short: { id: 'privacy.direct.short', defaultMessage: 'Mentioned people only' },
});
class StatusCheckBox extends React.PureComponent {
class StatusCheckBox extends PureComponent {
static propTypes = {
id: PropTypes.string.isRequired,