[Glitch] Use the new JSX transform everywhere
Port 8f66126b10 to glitch-soc
			
			
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
import React from 'react';
 | 
			
		||||
import { PureComponent } from 'react';
 | 
			
		||||
import PropTypes from 'prop-types';
 | 
			
		||||
import api from 'flavours/glitch/api';
 | 
			
		||||
import { injectIntl, defineMessages } from 'react-intl';
 | 
			
		||||
@@ -10,7 +10,7 @@ const messages = defineMessages({
 | 
			
		||||
  violation: { id: 'report.categories.violation', defaultMessage: 'Content violates one or more server rules' },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
class Category extends React.PureComponent {
 | 
			
		||||
class Category extends PureComponent {
 | 
			
		||||
 | 
			
		||||
  static propTypes = {
 | 
			
		||||
    id: PropTypes.string.isRequired,
 | 
			
		||||
@@ -52,7 +52,7 @@ class Category extends React.PureComponent {
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class Rule extends React.PureComponent {
 | 
			
		||||
class Rule extends PureComponent {
 | 
			
		||||
 | 
			
		||||
  static propTypes = {
 | 
			
		||||
    id: PropTypes.string.isRequired,
 | 
			
		||||
@@ -84,7 +84,7 @@ class Rule extends React.PureComponent {
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class ReportReasonSelector extends React.PureComponent {
 | 
			
		||||
class ReportReasonSelector extends PureComponent {
 | 
			
		||||
 | 
			
		||||
  static propTypes = {
 | 
			
		||||
    id: PropTypes.string.isRequired,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user