00db5c8ade
Partial port of 0461f83320
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
25 lines
No EOL
560 B
JavaScript
25 lines
No EOL
560 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import Icon from 'flavours/glitch/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; |