[Glitch] Use the new JSX transform everywhere
Port 8f66126b10 to glitch-soc
			
			
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
//  Package imports.
 | 
			
		||||
import PropTypes from 'prop-types';
 | 
			
		||||
import React from 'react';
 | 
			
		||||
import { PureComponent, Fragment } from 'react';
 | 
			
		||||
import classNames from 'classnames';
 | 
			
		||||
import { supportsPassiveEvents } from 'detect-passive-events';
 | 
			
		||||
 | 
			
		||||
@@ -10,7 +10,7 @@ import { Icon } from 'flavours/glitch/components/icon';
 | 
			
		||||
const listenerOptions = supportsPassiveEvents ? { passive: true, capture: true } : true;
 | 
			
		||||
 | 
			
		||||
//  The component.
 | 
			
		||||
export default class ComposerOptionsDropdownContent extends React.PureComponent {
 | 
			
		||||
export default class ComposerOptionsDropdownContent extends PureComponent {
 | 
			
		||||
 | 
			
		||||
  static propTypes = {
 | 
			
		||||
    items: PropTypes.arrayOf(PropTypes.shape({
 | 
			
		||||
@@ -152,14 +152,14 @@ export default class ComposerOptionsDropdownContent extends React.PureComponent
 | 
			
		||||
 | 
			
		||||
    if (!contents) {
 | 
			
		||||
      contents = (
 | 
			
		||||
        <React.Fragment>
 | 
			
		||||
        <Fragment>
 | 
			
		||||
          {icon && <Icon className='icon' fixedWidth id={icon} />}
 | 
			
		||||
 | 
			
		||||
          <div className='privacy-dropdown__option__content'>
 | 
			
		||||
            <strong>{text}</strong>
 | 
			
		||||
            {meta}
 | 
			
		||||
          </div>
 | 
			
		||||
        </React.Fragment>
 | 
			
		||||
        </Fragment>
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user