Rewrite VerifiedBadge component as function component (#24892)
This commit is contained in:
parent
f877aa9d70
commit
140aa6b054
3 changed files with 15 additions and 26 deletions
14
app/javascript/mastodon/components/verified_badge.tsx
Normal file
14
app/javascript/mastodon/components/verified_badge.tsx
Normal file
|
@ -0,0 +1,14 @@
|
|||
import React from 'react';
|
||||
import { Icon } from './icon';
|
||||
|
||||
type Props = {
|
||||
link: string;
|
||||
};
|
||||
export const VerifiedBadge: React.FC<Props> = ({ link }) => (
|
||||
<span className='verified-badge'>
|
||||
<Icon id='check' className='verified-badge__mark' />
|
||||
<span dangerouslySetInnerHTML={{ __html: link }} />
|
||||
</span>
|
||||
);
|
||||
|
||||
export default VerifiedBadge;
|
Loading…
Add table
Add a link
Reference in a new issue