Skip to content

Commit afa9f46

Browse files
committed
feat: twitter -> x
1 parent ce8a95c commit afa9f46

File tree

7 files changed

+15
-36
lines changed

7 files changed

+15
-36
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ NEXT_PUBLIC_APP_NAME=xLog
77
NEXT_PUBLIC_OUR_DOMAIN=localhost:2222
88
NEXT_PUBLIC_SCORE_API_DOMAIN=localhost:2222
99
NEXT_PUBLIC_DISCORD_LINK="https://discord.gg/46VJMMVCuF"
10-
NEXT_PUBLIC_TWITTER_LINK="https://twitter.com/_xLog"
10+
NEXT_PUBLIC_TWITTER_LINK="https://x.com/_xLog"
1111
NEXT_PUBLIC_GITHUB_LINK="https://github.com/Crossbell-Box/xlog"
1212
NEXT_PUBLIC_CSB_IO="https://crossbell.io"
1313
NEXT_PUBLIC_CSB_SCAN="https://scan.crossbell.io"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
> 🪽 An open-source creative community written on the blockchain.
77
8-
[![Discord](https://img.shields.io/badge/chat-Discord-5865F2.svg?logo=discord&style=flat-square)](https://discord.gg/46VJMMVCuF) [![Twitter](https://img.shields.io/badge/Twitter-@_xLog-1d9bf0.svg?logo=twitter&style=flat-square)](https://twitter.com/_xLog) [![build](https://img.shields.io/github/actions/workflow/status/Crossbell-Box/xLog/docker-build-push-prod.yaml?logo=github&style=flat-square)](https://github.com/Crossbell-Box/xLog/actions/workflows/docker-build-push-prod.yaml)
8+
[![Discord](https://img.shields.io/badge/chat-Discord-5865F2.svg?logo=discord&style=flat-square)](https://discord.gg/46VJMMVCuF) [![Twitter](https://img.shields.io/badge/Twitter-@_xLog-1d9bf0.svg?logo=twitter&style=flat-square)](https://x.com/_xLog) [![build](https://img.shields.io/github/actions/workflow/status/Crossbell-Box/xLog/docker-build-push-prod.yaml?logo=github&style=flat-square)](https://github.com/Crossbell-Box/xLog/actions/workflows/docker-build-push-prod.yaml)
99

1010
## Introduction
1111

public/assets/social/telegram.svg

Lines changed: 0 additions & 13 deletions
This file was deleted.

public/assets/social/twitter.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/components/common/ReactionShare.tsx

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useTranslations } from "next-intl"
22
import dynamic from "next/dynamic"
3-
import Image from "next/image"
43
import { FC } from "react"
54
import { toast } from "react-hot-toast"
65

@@ -24,18 +23,11 @@ interface ShareData {
2423

2524
const shareList = [
2625
{
27-
name: "Twitter",
28-
icon: (
29-
<Image
30-
width={16}
31-
height={16}
32-
src="/assets/social/twitter.svg"
33-
alt="twitter"
34-
/>
35-
),
26+
name: "X",
27+
icon: <img width={16} height={16} src="https://icons.ly/x" alt="x" />,
3628
onClick: (data: ShareData) => {
3729
window.open(
38-
`https://twitter.com/intent/tweet?url=${
30+
`https://x.com/intent/tweet?url=${
3931
data.url
4032
}&text=${encodeURIComponent(data.text)}&via=_xLog`,
4133
)
@@ -44,10 +36,10 @@ const shareList = [
4436
{
4537
name: "Telegram",
4638
icon: (
47-
<Image
39+
<img
4840
width={16}
4941
height={16}
50-
src="/assets/social/telegram.svg"
42+
src="https://icons.ly/telegram"
5143
alt="telegram"
5244
/>
5345
),

src/components/site/Platform.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ export const PlatformsSyncMap: {
2929
url: "https://t.me/{username}",
3030
},
3131
twitter: {
32-
name: "Twitter",
33-
url: "https://twitter.com/{username}",
34-
portfolioDomain: `https://twitter.com/`,
32+
name: "X",
33+
icon: `${iconCDN}/x`,
34+
url: "https://x.com/{username}",
35+
portfolioDomain: `https://x.com/`,
3536
},
3637
twitter_id: {
37-
name: "Twitter",
38-
icon: `${iconCDN}/twitter`,
39-
url: "https://twitter.com/i/user/{username}",
38+
name: "X",
39+
icon: `${iconCDN}/x`,
40+
url: "https://x.com/i/user/{username}",
4041
},
4142
x: {
4243
name: "X",

src/lib/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const getTwitterShareUrl = ({
5959
return ""
6060
}
6161

62-
return `https://twitter.com/intent/tweet?url=${getSiteLink({
62+
return `https://x.com/intent/tweet?url=${getSiteLink({
6363
subdomain: site.handle!,
6464
domain: site.metadata?.content?.custom_domain,
6565
})}/${encodeURIComponent(slug)}&via=_xLog&text=${encodeURIComponent(

0 commit comments

Comments
 (0)