File tree Expand file tree Collapse file tree 7 files changed +15
-36
lines changed Expand file tree Collapse file tree 7 files changed +15
-36
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ NEXT_PUBLIC_APP_NAME=xLog
7
7
NEXT_PUBLIC_OUR_DOMAIN = localhost:2222
8
8
NEXT_PUBLIC_SCORE_API_DOMAIN = localhost:2222
9
9
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"
11
11
NEXT_PUBLIC_GITHUB_LINK = " https://github.com/Crossbell-Box/xlog"
12
12
NEXT_PUBLIC_CSB_IO = " https://crossbell.io"
13
13
NEXT_PUBLIC_CSB_SCAN = " https://scan.crossbell.io"
Original file line number Diff line number Diff line change 5
5
6
6
> 🪽 An open-source creative community written on the blockchain.
7
7
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 )
9
9
10
10
## Introduction
11
11
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import { useTranslations } from "next-intl"
2
2
import dynamic from "next/dynamic"
3
- import Image from "next/image"
4
3
import { FC } from "react"
5
4
import { toast } from "react-hot-toast"
6
5
@@ -24,18 +23,11 @@ interface ShareData {
24
23
25
24
const shareList = [
26
25
{
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" /> ,
36
28
onClick : ( data : ShareData ) => {
37
29
window . open (
38
- `https://twitter .com/intent/tweet?url=${
30
+ `https://x .com/intent/tweet?url=${
39
31
data . url
40
32
} &text=${ encodeURIComponent ( data . text ) } &via=_xLog`,
41
33
)
@@ -44,10 +36,10 @@ const shareList = [
44
36
{
45
37
name : "Telegram" ,
46
38
icon : (
47
- < Image
39
+ < img
48
40
width = { 16 }
49
41
height = { 16 }
50
- src = "/assets/social /telegram.svg "
42
+ src = "https://icons.ly /telegram"
51
43
alt = "telegram"
52
44
/>
53
45
) ,
Original file line number Diff line number Diff line change @@ -29,14 +29,15 @@ export const PlatformsSyncMap: {
29
29
url : "https://t.me/{username}" ,
30
30
} ,
31
31
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/` ,
35
36
} ,
36
37
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}" ,
40
41
} ,
41
42
x : {
42
43
name : "X" ,
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export const getTwitterShareUrl = ({
59
59
return ""
60
60
}
61
61
62
- return `https://twitter .com/intent/tweet?url=${ getSiteLink ( {
62
+ return `https://x .com/intent/tweet?url=${ getSiteLink ( {
63
63
subdomain : site . handle ! ,
64
64
domain : site . metadata ?. content ?. custom_domain ,
65
65
} ) } /${ encodeURIComponent ( slug ) } &via=_xLog&text=${ encodeURIComponent (
You can’t perform that action at this time.
0 commit comments