Skip to content

Commit

Permalink
Twitter has been renamed X
Browse files Browse the repository at this point in the history
  • Loading branch information
Athou committed Aug 18, 2024
1 parent a82fca1 commit f04ca21
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions commafeed-client/src/app/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { t } from "@lingui/macro"
import type { IconType } from "react-icons"
import { FaAt } from "react-icons/fa"
import { SiBuffer, SiFacebook, SiGmail, SiInstapaper, SiPocket, SiTumblr, SiTwitter } from "react-icons/si"
import { SiBuffer, SiFacebook, SiGmail, SiInstapaper, SiPocket, SiTumblr, SiX } from "react-icons/si"
import type { Category, Entry, SharingSettings } from "./types"

const categories: Record<string, Category> = {
Expand Down Expand Up @@ -50,10 +50,10 @@ const sharing: {
url: url => `https://www.facebook.com/sharer/sharer.php?u=${url}`,
},
twitter: {
label: "Twitter",
icon: SiTwitter,
color: "#1D9BF0",
url: (url, desc) => `https://twitter.com/share?text=${desc}&url=${url}`,
label: "X",
icon: SiX,
color: "#000000",
url: (url, desc) => `https://x.com/share?text=${desc}&url=${url}`,
},
tumblr: {
label: "Tumblr",
Expand Down
6 changes: 3 additions & 3 deletions commafeed-client/src/pages/WelcomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ActionButton } from "components/ActionButton"
import { useBrowserExtension } from "hooks/useBrowserExtension"
import { useMobile } from "hooks/useMobile"
import { useAsyncCallback } from "react-async-hook"
import { SiGithub, SiTwitter } from "react-icons/si"
import { SiGithub, SiX } from "react-icons/si"
import { TbClock, TbKey, TbMoon, TbSettings, TbSun, TbUserPlus } from "react-icons/tb"
import { PageTitle } from "./PageTitle"

Expand Down Expand Up @@ -140,8 +140,8 @@ function Footer() {
<Anchor variant="text" href="https://github.com/Athou/commafeed/" target="_blank" rel="noreferrer">
<SiGithub />
</Anchor>
<Anchor variant="text" href="https://twitter.com/CommaFeed" target="_blank" rel="noreferrer">
<SiTwitter />
<Anchor variant="text" href="https://x.com/CommaFeed" target="_blank" rel="noreferrer">
<SiX />
</Anchor>
</Group>
<Box>
Expand Down

0 comments on commit f04ca21

Please sign in to comment.