From 11018e77b38f8dd6607aed869e0279c1f1080f55 Mon Sep 17 00:00:00 2001 From: Karim Dalaize Date: Tue, 6 Feb 2024 15:55:50 +0100 Subject: [PATCH] =?UTF-8?q?[Removed]=C2=A0Occurences=20and=20usage=20of=20?= =?UTF-8?q?lum=20explorer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/constant/navigation.ts | 3 +-- .../components/DepositSteps/DepositSteps.tsx | 17 ++--------------- .../MySavings/components/Modals/Claim/Claim.tsx | 17 ++--------------- .../TransationsTable/TransactionsTable.tsx | 4 ++-- .../LuckiestWinnerCard/LuckiestWinnerCard.tsx | 2 +- 5 files changed, 8 insertions(+), 35 deletions(-) diff --git a/src/constant/navigation.ts b/src/constant/navigation.ts index 76d74de9..76e1f99a 100644 --- a/src/constant/navigation.ts +++ b/src/constant/navigation.ts @@ -8,14 +8,13 @@ export const POOLS = '/pools'; export const POOL_DETAILS = '/pools/details'; export const MY_SAVINGS = '/my-savings'; export const WINNERS = '/winners'; -export const LUM_EXPLORER = `https://explorer.${isTestEnv() ? 'testnet.' : ''}lum.network`; export const DOCUMENTATION = 'https://docs.cosmosmillions.com'; export const FAQ = '#faq'; export const DISCORD = 'https://discord.com/invite/PWHUMdwQ5r'; export const TWITTER = 'https://twitter.com/CosmosMillions'; export const MEDIUM = 'https://medium.com/lum-network'; export const GITHUB = 'https://github.com/lum-network'; -export const MINTSCAN = 'https://mintscan.io'; +export const MINTSCAN = 'https://mintscan.io/lum'; export const TWEET_URL = 'https://twitter.com/intent/tweet'; export const KEPLR_EXTENSION_URL = 'https://chrome.google.com/webstore/detail/keplr/dmkamcknogkgcdfhhbddcghachkejeap'; export const LEAP_EXTENSION_URL = 'https://chrome.google.com/webstore/detail/leap-cosmos-wallet/fcfcfllfndlomdhbehjjcoimbgofdncg'; diff --git a/src/pages/Deposit/components/DepositSteps/DepositSteps.tsx b/src/pages/Deposit/components/DepositSteps/DepositSteps.tsx index 13e8d965..f7ed527f 100644 --- a/src/pages/Deposit/components/DepositSteps/DepositSteps.tsx +++ b/src/pages/Deposit/components/DepositSteps/DepositSteps.tsx @@ -376,27 +376,14 @@ const DepositStep3 = ({ txInfos, price, title, subtitle, onTwitterShare }: { txI
{I18n.t('mySavings.depositStates', { returnObjects: true })[DepositState.DEPOSIT_STATE_SUCCESS]}
-
-
- { - window.open(`${NavigationConstants.LUM_EXPLORER}/txs/${txInfos.hash}`, '_blank'); - }} - > - Lum Network logo purple - {I18n.t('deposit.seeOnExplorer')} - -
+
{ - window.open(`${NavigationConstants.MINTSCAN}/lum/txs/${txInfos.hash}`, '_blank'); + window.open(`${NavigationConstants.MINTSCAN}/tx/${txInfos.hash}`, '_blank'); }} > Mintscan diff --git a/src/pages/MySavings/components/Modals/Claim/Claim.tsx b/src/pages/MySavings/components/Modals/Claim/Claim.tsx index 9002e082..f70d14e3 100644 --- a/src/pages/MySavings/components/Modals/Claim/Claim.tsx +++ b/src/pages/MySavings/components/Modals/Claim/Claim.tsx @@ -56,27 +56,14 @@ const ShareClaim = ({ infos, prices, modalRef, onTwitterShare }: { infos: ShareI
{I18n.t('mySavings.depositStates', { returnObjects: true })[DepositState.DEPOSIT_STATE_SUCCESS]}
))} -
-
- { - window.open(`${NavigationConstants.LUM_EXPLORER}/txs/${infos.hash}`, '_blank'); - }} - > - Lum Network logo purple - {I18n.t('deposit.seeOnExplorer')} - -
+
{ - window.open(`${NavigationConstants.MINTSCAN}/lum/txs/${infos.hash}`, '_blank'); + window.open(`${NavigationConstants.MINTSCAN}/tx/${infos.hash}`, '_blank'); }} > Mintscan diff --git a/src/pages/MySavings/components/TransationsTable/TransactionsTable.tsx b/src/pages/MySavings/components/TransationsTable/TransactionsTable.tsx index f180fc14..a10a1c39 100644 --- a/src/pages/MySavings/components/TransationsTable/TransactionsTable.tsx +++ b/src/pages/MySavings/components/TransationsTable/TransactionsTable.tsx @@ -64,7 +64,7 @@ const TransactionsTable = ({ ) : null}
- + {StringsUtils.trunc(transaction.hash)}
@@ -110,7 +110,7 @@ const TransactionsTable = ({
diff --git a/src/pages/Winners/components/LuckiestWinnerCard/LuckiestWinnerCard.tsx b/src/pages/Winners/components/LuckiestWinnerCard/LuckiestWinnerCard.tsx index a67c3c28..4fa5593d 100644 --- a/src/pages/Winners/components/LuckiestWinnerCard/LuckiestWinnerCard.tsx +++ b/src/pages/Winners/components/LuckiestWinnerCard/LuckiestWinnerCard.tsx @@ -29,7 +29,7 @@ const LuckiestWinnerCard = ({ prize, rank }: IProps) => { return ( { - window.open(`${NavigationConstants.LUM_EXPLORER}/account/${prize.address}`, '_blank')?.focus(); + window.open(`${NavigationConstants.MINTSCAN}/address/${prize.address}`, '_blank')?.focus(); }} className='luckiest-winner-card p-3 p-xl-4' withoutPadding