Skip to content

Commit 2b6bb6d

Browse files
authored
fix text content in media button and replies (#161)
1 parent f6d34db commit 2b6bb6d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/react-tweet/src/twitter-theme/tweet-media-video.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const TweetMediaVideo = ({ tweet, media }: Props) => {
5353
<button
5454
type="button"
5555
className={s.videoButton}
56-
aria-label="View video on Twitter"
56+
aria-label="View video on X"
5757
onClick={(e) => {
5858
const video = e.currentTarget.previousSibling as HTMLMediaElement
5959

@@ -84,7 +84,7 @@ export const TweetMediaVideo = ({ tweet, media }: Props) => {
8484
target="_blank"
8585
rel="noopener noreferrer"
8686
>
87-
{playButton ? 'Watch on Twitter' : 'Continue watching on Twitter'}
87+
{playButton ? 'Watch on X' : 'Continue watching on X'}
8888
</a>
8989
</div>
9090
)}

packages/react-tweet/src/twitter-theme/tweet-replies.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const TweetReplies = ({ tweet }: { tweet: EnrichedTweet }) => (
1111
>
1212
<span className={s.text}>
1313
{tweet.conversation_count === 0
14-
? 'Read more on Twitter'
14+
? 'Read more on X'
1515
: tweet.conversation_count === 1
1616
? `Read ${formatNumber(tweet.conversation_count)} reply`
1717
: `Read ${formatNumber(tweet.conversation_count)} replies`}

0 commit comments

Comments
 (0)