Fix prop warnings
This commit is contained in:
parent
2e45367643
commit
f0a9ed8ad4
3 changed files with 5 additions and 5 deletions
|
@ -12,6 +12,8 @@ class Permalink extends React.PureComponent {
|
|||
children: PropTypes.node,
|
||||
onInterceptClick: PropTypes.func,
|
||||
history: PropTypes.object,
|
||||
title: PropTypes.string,
|
||||
dangerouslySetInnerHTML: PropTypes.object,
|
||||
};
|
||||
|
||||
handleClick = e => {
|
||||
|
@ -27,10 +29,10 @@ class Permalink extends React.PureComponent {
|
|||
}
|
||||
|
||||
render() {
|
||||
const { href, children, className, onInterceptClick, ...other } = this.props;
|
||||
const { href, children, className, title, dangerouslySetInnerHTML } = this.props;
|
||||
|
||||
return (
|
||||
<a target='_blank' href={href} onClick={this.handleClick} {...other} className={`permalink${className ? ' ' + className : ''}`}>
|
||||
<a target='_blank' href={href} onClick={this.handleClick} dangerouslySetInnerHTML={dangerouslySetInnerHTML} title={title} className={`permalink${className ? ' ' + className : ''}`}>
|
||||
{children}
|
||||
</a>
|
||||
);
|
||||
|
|
|
@ -223,7 +223,7 @@ export default class StatusList extends ImmutablePureComponent {
|
|||
isLoading={isLoading}
|
||||
showLoading={isLoading && statusIds.size === 0}
|
||||
onLoadMore={onLoadMore && this.handleLoadOlder}
|
||||
placeholderComponent={() => <PlaceholderStatus />}
|
||||
placeholderComponent={PlaceholderStatus}
|
||||
placeholderCount={20}
|
||||
ref={this.setRef}
|
||||
className={divideType === 'border' ? 'divide-y divide-solid divide-gray-200' : 'sm:space-y-3 divide-y divide-solid divide-gray-200 sm:divide-none'}
|
||||
|
|
|
@ -256,8 +256,6 @@ class PrivacyDropdown extends React.PureComponent {
|
|||
className='text-gray-400 hover:text-gray-600'
|
||||
src={valueOption.icon}
|
||||
title={intl.formatMessage(messages.change_privacy)}
|
||||
expanded={open}
|
||||
active={open}
|
||||
onClick={this.handleToggle}
|
||||
onMouseDown={this.handleMouseDown}
|
||||
onKeyDown={this.handleButtonKeyDown}
|
||||
|
|
Loading…
Reference in a new issue