Fix "undefined" in className (#3939)
parent
7129cca17a
commit
f4d0f6954e
|
@ -25,7 +25,7 @@ export default class Permalink extends React.PureComponent {
|
||||||
const { href, children, className, ...other } = this.props;
|
const { href, children, className, ...other } = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<a href={href} onClick={this.handleClick} {...other} className={'permalink ' + className}>
|
<a href={href} onClick={this.handleClick} {...other} className={`permalink${className ? ' ' + className : ''}`}>
|
||||||
{children}
|
{children}
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue