add "copy link" text

This commit is contained in:
Samuel Newman 2023-11-30 16:40:19 +00:00
parent fcd22d4ccb
commit 5c78b2266f
13 changed files with 236 additions and 174 deletions

View file

@ -23,6 +23,7 @@ import {Shadow} from '#/state/cache/types'
import {msg} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {useSession} from '#/state/session'
import {isWeb} from '#/platform/detection'
export function PostDropdownBtn({
testID,
@ -122,7 +123,7 @@ export function PostDropdownBtn({
},
},
{
label: _(msg`Share`),
label: isWeb ? _(msg`Copy link to post`) : _(msg`Share`),
onPress() {
const url = toShareUrl(href)
shareUrl(url)