Skip to content

Commit

Permalink
Deprecate X social links
Browse files Browse the repository at this point in the history
  • Loading branch information
brianclemens committed Nov 24, 2024
1 parent 6e16e1b commit 8a2fcdc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 34 deletions.
14 changes: 0 additions & 14 deletions app/[locale]/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,6 @@ export default function Footer() {
</svg>
),
},
{
name: tFooter("socialNav.x"),
href: "https://x.com/rocky_linux",
icon: (props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>) => (
<svg
fill="currentColor"
viewBox="0 0 24 24"
className="h-6 w-6"
{...props}
>
<path d="M13.6823 10.6218L20.2391 3H18.6854L12.9921 9.61788L8.44486 3H3.2002L10.0765 13.0074L3.2002 21H4.75404L10.7663 14.0113L15.5685 21H20.8131L13.6819 10.6218H13.6823ZM11.5541 13.0956L10.8574 12.0991L5.31391 4.16971H7.70053L12.1742 10.5689L12.8709 11.5655L18.6861 19.8835H16.2995L11.5541 13.096V13.0956Z" />
</svg>
),
},
{
name: tFooter("socialNav.github"),
href: "https://github.com/rocky-linux",
Expand Down
16 changes: 0 additions & 16 deletions components/shareButtons/ShareButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const ShareButtons = ({ url }: ShareButtonsProps) => {

const blueskyLink = `https://bsky.app/intent/compose?text=${url}`;
const facebookLink = `https://www.facebook.com/sharer/sharer.php?u=${url}`;
const xLink = `https://twitter.com/intent/tweet?text=${url}`;
const linkedInLink = `https://www.linkedin.com/sharing/share-offsite/?url=${url}`;
const threadsLink = `https://threads.net/intent/post?text=${url}`;

Expand Down Expand Up @@ -100,21 +99,6 @@ const ShareButtons = ({ url }: ShareButtonsProps) => {
</g>
</svg>
</Link>
<Link
href={xLink}
className="hover:text-primary"
target="_blank"
>
<span className="sr-only">{t("x")}</span>
<svg
fill="currentColor"
viewBox="0 0 24 24"
className="h-6 w-6"
aria-hidden="true"
>
<path d="M13.6823 10.6218L20.2391 3H18.6854L12.9921 9.61788L8.44486 3H3.2002L10.0765 13.0074L3.2002 21H4.75404L10.7663 14.0113L15.5685 21H20.8131L13.6819 10.6218H13.6823ZM11.5541 13.0956L10.8574 12.0991L5.31391 4.16971H7.70053L12.1742 10.5689L12.8709 11.5655L18.6861 19.8835H16.2995L11.5541 13.096V13.0956Z" />
</svg>
</Link>
</div>
</>
);
Expand Down
2 changes: 0 additions & 2 deletions messages/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"linkedin": "LinkedIn",
"mastodon": "Mastodon",
"threads": "Threads",
"x": "X",
"youtube": "YouTube"
},
"disclaimer": "Rocky Linux® is the registered trademark of the Rocky Enterprise Software Foundation in the U.S. and other countries. Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries. Red Hat Enterprise Linux, RHEL and CentOS are trademarks or registered trademarks of Red Hat, Inc. or its subsidiaries in the US and other countries. We are not affiliated with, endorsed by or sponsored by Red Hat, Inc."
Expand Down Expand Up @@ -118,7 +117,6 @@
},
"facebook": "Facebook",
"linkedin": "LinkedIn",
"x": "X",
"threads": "Threads"
},
"about": {
Expand Down
2 changes: 0 additions & 2 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"linkedin": "LinkedIn",
"mastodon": "Mastodon",
"threads": "Threads",
"x": "X",
"youtube": "YouTube"
},
"disclaimer": "Rocky Linux® is the registered trademark of the Rocky Enterprise Software Foundation in the U.S. and other countries. Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries. Red Hat Enterprise Linux, RHEL and CentOS are trademarks or registered trademarks of Red Hat, Inc. or its subsidiaries in the US and other countries. We are not affiliated with, endorsed by or sponsored by Red Hat, Inc."
Expand Down Expand Up @@ -118,7 +117,6 @@
},
"facebook": "Facebook",
"linkedin": "LinkedIn",
"x": "X",
"threads": "Threads"
},
"about": {
Expand Down

0 comments on commit 8a2fcdc

Please sign in to comment.