Skip to content

Commit

Permalink
Merge pull request #4219 from thematters/develop
Browse files Browse the repository at this point in the history
[hot release] revise USDT donation guide link
  • Loading branch information
robertu7 committed Mar 12, 2024
2 parents 35f2841 + 71bb90c commit fbf7511
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@
"defaultMessage": "Set"
},
"HqnUd1": {
"defaultMessage": "Add hash from IPFS into compatible reader such as",
"defaultMessage": "Add hash from IPFS into compatible reader such as ",
"description": "src/components/Dialogs/RssFeedDialog/Content.tsx"
},
"HxcjQl": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "matters-web",
"version": "4.29.0",
"version": "4.29.1",
"description": "codebase of Matters' website",
"author": "Matters <hi@matters.town>",
"engines": {
Expand Down
5 changes: 5 additions & 0 deletions src/common/enums/externalLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ export const GUIDE_LINKS = {
zh_hans: `https://matters.town/@hi176/387119?locale=zh-Hans`,
en: `https://matters.town/@hi176/387119?locale=en`,
},
usdt: {
zh_hant: `https://matters.town/@hi176/537407`,
zh_hans: `https://matters.town/@hi176/537407?locale=zh-Hans`,
en: `https://matters.town/@hi176/537407?locale=en`,
},
PWA: {
zh_hant: `https://matters.town/@hi176/387115`,
zh_hans: `https://matters.town/@hi176/387115?locale=zh-Hans`,
Expand Down
12 changes: 1 addition & 11 deletions src/common/utils/wallet.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Chain, configureChains, createConfig, createStorage } from 'wagmi'
import { Chain, configureChains, createConfig } from 'wagmi'
import {
goerli,
mainnet,
Expand Down Expand Up @@ -63,16 +63,6 @@ export const wagmiConfig = createConfig({
]),
],
publicClient,
/*
FIXME: need to find a way of clearing ens name cache instead of clearing the global cache
*/
storage: createStorage({
storage: {
getItem: () => null,
setItem: () => null,
removeItem: () => null,
},
}),
})

export const maskAddress = (address: string, prefixLen: number = 8) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const Tips = () => {
/>
<a
className="u-link-green"
href={GUIDE_LINKS.payment[lang]}
href={GUIDE_LINKS.usdt[lang]}
target="_blank"
rel="noreferrer"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const SetAmountBalance: React.FC<SetAmountBalanceProps> = ({
</BindEmailHintDialog>
)}
{isUSDT && balanceUSDT <= 0 && (
<a href={GUIDE_LINKS.payment[lang]} target="_blank" rel="noreferrer">
<a href={GUIDE_LINKS.usdt[lang]} target="_blank" rel="noreferrer">
<TextIcon size="xs" textDecoration="underline" color="greyDark">
<Translate
zh_hant="如何移轉資金到 Optimism?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const WhyOptimismDialog = ({ children }: WhyOptimismDialogProps) => {
link: (
<a
className="u-link-green"
href={GUIDE_LINKS.payment[lang]}
href={GUIDE_LINKS.usdt[lang]}
target="_blank"
rel="noreferrer"
>
Expand Down

0 comments on commit fbf7511

Please sign in to comment.