Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use X instead of twitter #109

Merged
merged 2 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/assets/footer_X.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions src/assets/footer_twitter.svg

This file was deleted.

8 changes: 4 additions & 4 deletions src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo, useMemo } from 'react'
import { useTranslation } from 'react-i18next'
import { ReactComponent as TwitterIcon } from '../../assets/footer_twitter.svg'
import { ReactComponent as XIcon } from '../../assets/footer_X.svg'
import { ReactComponent as MediumIcon } from '../../assets/footer_medium.svg'
import { ReactComponent as TelegramIcon } from '../../assets/footer_telegram.svg'
import { ReactComponent as RedditIcon } from '../../assets/footer_reddit.svg'
Expand Down Expand Up @@ -90,9 +90,9 @@ export default memo(() => {
url: 'https://discord.com/invite/FKh8Zzvwqa',
},
{
label: t('footer.twitter'),
icon: TwitterIcon,
url: 'https://twitter.com/nervosnetwork',
label: t('footer.X'),
icon: XIcon,
url: 'https://x.com/nervosnetwork',
},
{
label: t('footer.blog'),
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
"whitepaper": "Whitepaper",
"faucet": "Faucet",
"community": "Community",
"twitter": "Twitter",
"X": "X",
"discord": "Discord",
"blog": "Blog",
"telegram": "Telegram",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
"whitepaper": "白皮书",
"faucet": "水龙头",
"community": "社区",
"twitter": "Twitter",
"X": "X",
"discord": "Discord",
"blog": "Blog",
"telegram": "Telegram",
Expand Down