Use JSX syntax for Fragments (#25093)
This commit is contained in:
parent
8f66126b10
commit
5a16bd7bf4
24 changed files with 94 additions and 98 deletions
|
@ -1,4 +1,4 @@
|
|||
import { PureComponent, Fragment } from 'react';
|
||||
import { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Blurhash } from 'mastodon/components/blurhash';
|
||||
import { accountsCountRenderer } from 'mastodon/components/hashtag';
|
||||
|
@ -38,10 +38,10 @@ export default class Story extends PureComponent {
|
|||
|
||||
<div className='story__thumbnail'>
|
||||
{thumbnail ? (
|
||||
<Fragment>
|
||||
<>
|
||||
<div className={classNames('story__thumbnail__preview', { 'story__thumbnail__preview--hidden': thumbnailLoaded })}><Blurhash hash={blurhash} /></div>
|
||||
<img src={thumbnail} onLoad={this.handleImageLoad} alt='' role='presentation' />
|
||||
</Fragment>
|
||||
</>
|
||||
) : <Skeleton />}
|
||||
</div>
|
||||
</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue