You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
553 B
25 lines
553 B
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import Icon from 'mastodon/components/icon';
|
|
|
|
class VerifiedBadge extends React.PureComponent {
|
|
|
|
static propTypes = {
|
|
link: PropTypes.string.isRequired,
|
|
verifiedAt: PropTypes.string.isRequired,
|
|
};
|
|
|
|
render () {
|
|
const { link } = this.props;
|
|
|
|
return (
|
|
<span className='verified-badge'>
|
|
<Icon id='check' className='verified-badge__mark' />
|
|
<span dangerouslySetInnerHTML={{ __html: link }} />
|
|
</span>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
export default VerifiedBadge; |