Skip to content

Commit

Permalink
[Removed] Occurences and usage of lum explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
greedyboi committed Feb 6, 2024
1 parent 8dc4eaf commit 11018e7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 35 deletions.
3 changes: 1 addition & 2 deletions src/constant/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
17 changes: 2 additions & 15 deletions src/pages/Deposit/components/DepositSteps/DepositSteps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -376,27 +376,14 @@ const DepositStep3 = ({ txInfos, price, title, subtitle, onTwitterShare }: { txI
</div>
<div className='deposit-state rounded-pill text-nowrap success mt-3 mt-sm-0'>{I18n.t('mySavings.depositStates', { returnObjects: true })[DepositState.DEPOSIT_STATE_SUCCESS]}</div>
</div>
<div className='row row-cols-1 row-cols-lg-3 gx-4 gy-4 ctas-section'>
<div className='col'>
<Card
flat
withoutPadding
className='step-3-cta-container d-flex flex-row align-items-center flex-grow-1 text-start p-4 w-100'
onClick={() => {
window.open(`${NavigationConstants.LUM_EXPLORER}/txs/${txInfos.hash}`, '_blank');
}}
>
<img src={Assets.images.lumLogoPurple} alt='Lum Network logo purple' className='me-4' />
{I18n.t('deposit.seeOnExplorer')}
</Card>
</div>
<div className='row row-cols-1 row-cols-lg-2 gx-4 gy-4 ctas-section'>
<div className='col'>
<Card
flat
withoutPadding
className='step-3-cta-container d-flex flex-row align-items-center text-start p-4 w-100'
onClick={() => {
window.open(`${NavigationConstants.MINTSCAN}/lum/txs/${txInfos.hash}`, '_blank');
window.open(`${NavigationConstants.MINTSCAN}/tx/${txInfos.hash}`, '_blank');
}}
>
<img src={Assets.images.mintscanPurple} alt='Mintscan' className='me-4' />
Expand Down
17 changes: 2 additions & 15 deletions src/pages/MySavings/components/Modals/Claim/Claim.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,27 +56,14 @@ const ShareClaim = ({ infos, prices, modalRef, onTwitterShare }: { infos: ShareI
<div className='deposit-state rounded-pill text-nowrap success'>{I18n.t('mySavings.depositStates', { returnObjects: true })[DepositState.DEPOSIT_STATE_SUCCESS]}</div>
</div>
))}
<div className='row row-cols-3 gx-4'>
<div className='col'>
<Card
flat
withoutPadding
className='step-3-cta-container d-flex flex-row align-items-center flex-grow-1 text-start p-4 w-100'
onClick={() => {
window.open(`${NavigationConstants.LUM_EXPLORER}/txs/${infos.hash}`, '_blank');
}}
>
<img src={Assets.images.lumLogoPurple} alt='Lum Network logo purple' className='me-4' />
{I18n.t('deposit.seeOnExplorer')}
</Card>
</div>
<div className='row row-cols-2 gx-4'>
<div className='col'>
<Card
flat
withoutPadding
className='step-3-cta-container d-flex flex-row align-items-center text-start p-4 w-100'
onClick={() => {
window.open(`${NavigationConstants.MINTSCAN}/lum/txs/${infos.hash}`, '_blank');
window.open(`${NavigationConstants.MINTSCAN}/tx/${infos.hash}`, '_blank');
}}
>
<img src={Assets.images.mintscanPurple} alt='Mintscan' className='me-4' />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const TransactionsTable = ({
</span>
) : null}
</div>
<a className='tx-height ms-0 ms-sm-3 mt-3 mt-md-0 mt-lg-3 mt-xl-0' href={`${NavigationConstants.LUM_EXPLORER}/txs/${transaction.hash}`} rel='noreferrer' target='_blank'>
<a className='tx-height ms-0 ms-sm-3 mt-3 mt-md-0 mt-lg-3 mt-xl-0' href={`${NavigationConstants.MINTSCAN}/tx/${transaction.hash}`} rel='noreferrer' target='_blank'>
{StringsUtils.trunc(transaction.hash)}
</a>
</div>
Expand Down Expand Up @@ -110,7 +110,7 @@ const TransactionsTable = ({
<div className='d-flex flex-column my-2'>
<label>{headers[1]}</label>
<div className='table-item'>
<a className='tx-height' href={`${NavigationConstants.LUM_EXPLORER}/txs/${transaction.hash}`} rel='noreferrer' target='_blank'>
<a className='tx-height' href={`${NavigationConstants.MINTSCAN}/tx/${transaction.hash}`} rel='noreferrer' target='_blank'>
{StringsUtils.trunc(transaction.hash)}
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const LuckiestWinnerCard = ({ prize, rank }: IProps) => {
return (
<Card
onClick={() => {
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
Expand Down

0 comments on commit 11018e7

Please sign in to comment.