chore: Rename Twitter links/labels to X (#10509)

This commit is contained in:
Sébastien Lorber 2024-09-19 11:30:57 +02:00 committed by GitHub
parent a435fbd36e
commit 95e2d469e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
95 changed files with 217 additions and 218 deletions

View file

@ -11,10 +11,10 @@ import Link from '@docusaurus/Link';
import Heading from '@theme/Heading';
import styles from './styles.module.css';
function TwitterLink() {
function XLink() {
return (
<Link href="https://twitter.com/docusaurus" className={styles.twitter}>
<b>Twitter</b>
<Link href="https://x.com/docusaurus" className={styles.x}>
<b>X</b>
<svg
style={{
fill: '#1da1f2',
@ -71,11 +71,11 @@ export default function ChangelogListHeader({
<Translate
id="changelog.description"
values={{
twitterLink: <TwitterLink />,
xLink: <XLink />,
rssLink: <RssLink />,
}}>
{
'Subscribe through {rssLink} or follow us on {twitterLink} to stay up-to-date with new releases!'
'Subscribe through {rssLink} or follow us on {xLink} to stay up-to-date with new releases!'
}
</Translate>
</p>

View file

@ -10,7 +10,7 @@
color: #f26522;
}
.twitter,
.twitter:hover {
.x,
.x:hover {
color: #1da1f2;
}