Quote.tsx: Fix tslint errors

I really need to get tslint editor integration in place.
This commit is contained in:
Scott Nonnenberg 2018-04-12 17:00:21 -07:00
parent 557ea55531
commit d91f40177e
No known key found for this signature in database
GPG key ID: 5F82280C35134661

View file

@ -150,7 +150,7 @@ export class Quote extends React.Component<Props, {}> {
: i18n('replyingToYourself') : i18n('replyingToYourself')
: i18n('replyingTo', [authorName]); : i18n('replyingTo', [authorName]);
return <div className='ios-label'>{label}</div>; return <div className="ios-label">{label}</div>;
} }
public render() { public render() {
@ -169,13 +169,14 @@ export class Quote extends React.Component<Props, {}> {
const authorProfileElement = authorProfileName const authorProfileElement = authorProfileName
? <span className="profile-name">~{authorProfileName}</span> ? <span className="profile-name">~{authorProfileName}</span>
: null; : null;
const classes = classnames(
authorColor,
'quote',
isFromMe ? 'from-me' : null,
);
return ( return (
<div onClick={onClick} className={classnames( <div onClick={onClick} className={classes}>
authorColor,
'quote',
isFromMe ? 'from-me' : null
)} >
<div className="primary"> <div className="primary">
{this.renderIOSLabel()} {this.renderIOSLabel()}
<div className={classnames(authorColor, 'author')}> <div className={classnames(authorColor, 'author')}>