Add username to tweet share
This commit is contained in:
@@ -34,7 +34,7 @@ export default function Pataje({teks, setError, setSuccess}) {
|
|||||||
const patajeUrl = `${SITE_URL}/teks/${slug}#${slug}`
|
const patajeUrl = `${SITE_URL}/teks/${slug}#${slug}`
|
||||||
const renderAwtis = awtis.map(a => a.alias).join(', ')
|
const renderAwtis = awtis.map(a => a.alias).join(', ')
|
||||||
|
|
||||||
const text = `${renderAwtis} - ${tit} (Pawòl)`
|
const text = teks.user ? `${renderAwtis} - ${tit} (Pawòl) - (texte soumis par ${teks.user.username})` : `${renderAwtis} - ${tit} (Pawòl)`
|
||||||
const twitterUrl = 'https://twitter.com/intent/tweet'
|
const twitterUrl = 'https://twitter.com/intent/tweet'
|
||||||
|
|
||||||
const handleClose = () => {
|
const handleClose = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user