[Glitch] Use the new JSX transform everywhere

Port 8f66126b10 to glitch-soc
This commit is contained in:
Claire
2023-05-28 14:18:23 +02:00
parent 9381f78166
commit 6001f5ff36
263 changed files with 403 additions and 502 deletions

View File

@ -1,6 +1,6 @@
// Package imports.
import PropTypes from 'prop-types';
import React from 'react';
import { Fragment } from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl } from 'react-intl';
import Toggle from 'react-toggle';
@ -101,14 +101,14 @@ class ToggleOptionImpl extends ImmutablePureComponent {
const { meta, text, checked } = this.props;
return (
<React.Fragment>
<Fragment>
<Toggle checked={checked} onChange={this.handleChange} />
<div className='privacy-dropdown__option__content'>
<strong>{text}</strong>
{meta}
</div>
</React.Fragment>
</Fragment>
);
}