mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 08:48:53 +00:00
[Glitch] Rewrite VerifiedBadge component as function component
Port 140aa6b054 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
committed by
Claire
parent
00db5c8ade
commit
2efb22f455
14
app/javascript/flavours/glitch/components/verified_badge.tsx
Normal file
14
app/javascript/flavours/glitch/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;
|
||||
Reference in New Issue
Block a user