feat: ajouter le logo Mastodon au badge des commentaires fédérés
This commit is contained in:
@@ -6,6 +6,7 @@ import Avatar from '@mui/material/Avatar'
|
|||||||
import Typography from '@mui/material/Typography'
|
import Typography from '@mui/material/Typography'
|
||||||
import Chip from '@mui/material/Chip'
|
import Chip from '@mui/material/Chip'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
import {Mastodon} from '@icons-pack/react-simple-icons'
|
||||||
|
|
||||||
function formatAuteur(commentaire) {
|
function formatAuteur(commentaire) {
|
||||||
if (commentaire.origine === 'activitypub') {
|
if (commentaire.origine === 'activitypub') {
|
||||||
@@ -40,7 +41,12 @@ export default function Komante({commentaires}) {
|
|||||||
</Link>
|
</Link>
|
||||||
) : auteur}
|
) : auteur}
|
||||||
{estFedere && (
|
{estFedere && (
|
||||||
<Chip label='Mastodon' size='small' sx={{ml: 1}} />
|
<Chip
|
||||||
|
label='Mastodon'
|
||||||
|
size='small'
|
||||||
|
icon={<Mastodon size={14} color='#6364FF' title='' />}
|
||||||
|
sx={{ml: 1}}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant='body2'>{commentaire.contenu}</Typography>
|
<Typography variant='body2'>{commentaire.contenu}</Typography>
|
||||||
|
|||||||
Reference in New Issue
Block a user