Skip to content

Commit

Permalink
fix text content in media button and replies (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
garutyunov committed Apr 8, 2024
1 parent f6d34db commit 2b6bb6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/react-tweet/src/twitter-theme/tweet-media-video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const TweetMediaVideo = ({ tweet, media }: Props) => {
<button
type="button"
className={s.videoButton}
aria-label="View video on Twitter"
aria-label="View video on X"
onClick={(e) => {
const video = e.currentTarget.previousSibling as HTMLMediaElement

Expand Down Expand Up @@ -84,7 +84,7 @@ export const TweetMediaVideo = ({ tweet, media }: Props) => {
target="_blank"
rel="noopener noreferrer"
>
{playButton ? 'Watch on Twitter' : 'Continue watching on Twitter'}
{playButton ? 'Watch on X' : 'Continue watching on X'}
</a>
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion packages/react-tweet/src/twitter-theme/tweet-replies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const TweetReplies = ({ tweet }: { tweet: EnrichedTweet }) => (
>
<span className={s.text}>
{tweet.conversation_count === 0
? 'Read more on Twitter'
? 'Read more on X'
: tweet.conversation_count === 1
? `Read ${formatNumber(tweet.conversation_count)} reply`
: `Read ${formatNumber(tweet.conversation_count)} replies`}
Expand Down

0 comments on commit 2b6bb6d

Please sign in to comment.