Skip to content

Commit

Permalink
Fix warings
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultJRD committed Nov 22, 2023
1 parent 95273ca commit 74c3a9e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
8 changes: 4 additions & 4 deletions src/drops/components/DepositDropsCard/DepositDropsCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { Button, Card } from 'components';
import { I18n, KeplrUtils } from 'utils';
import { I18n, WalletProvidersUtils } from 'utils';
import Assets from 'assets';
import { NavigationConstants } from 'constant';
import { useSelector } from 'react-redux';
Expand Down Expand Up @@ -33,11 +33,11 @@ const DepositDropsCard = ({ className, cta, link }: IProps): JSX.Element => {
/>
</div>
<Button
disabled={KeplrUtils.isKeplrInstalled() && lumWallet === null}
{...(!KeplrUtils.isKeplrInstalled()
disabled={WalletProvidersUtils.isKeplrInstalled() && lumWallet === null}
{...(!WalletProvidersUtils.isKeplrInstalled()
? {
'data-bs-target': '#get-keplr-modal',
'data-bs-toggle': 'modal',
'data-bs-target': WalletProvidersUtils.isAnyWalletInstalled() ? '#choose-wallet-modal' : '#get-keplr-modal',
}
: {
to: link,
Expand Down
3 changes: 1 addition & 2 deletions src/pages/Deposit/Deposit.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
}

a {
color: $color-primary;
color: var(--color-primary);
}
}
}
Expand Down Expand Up @@ -96,7 +96,6 @@
line-height: 16px;
margin-bottom: 0.5rem;
color: var(--color-black);
color: var(--color-black);
}

.amount-container {
Expand Down
8 changes: 0 additions & 8 deletions src/pages/Deposit/Deposit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1041,14 +1041,6 @@ const Deposit = ({ isDrop }: { isDrop: boolean }) => {
y: 0,
});
}}
onPrevStep={(prev, next) => {
transferForm.setFieldValue('amount', next);
setIbcModalPrevAmount(prev);
setIbcModalDepositAmount(next);
if (ibcModalRef.current) {
ibcModalRef.current.show();
}
}}
onTwitterShare={() => setShareState('sharing')}
currentStep={currentStep}
steps={steps}
Expand Down
6 changes: 3 additions & 3 deletions src/redux/models/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { LumConstants, LumTypes, LumUtils, LumWallet, LumWalletFactory } from '@
import Long from 'long';

import { ToastUtils, I18n, LumClient, DenomsUtils, WalletClient, WalletUtils, NumbersUtils, Firebase, WalletProvidersUtils } from 'utils';
import { DenomsConstants, LUM_COINGECKO_ID, LUM_WALLET_LINK, WalletProvider, FirebaseConstants, ApiConstants, PrizesConstants } from 'constant';
import { LumWalletModel, OtherWalletModel, PoolModel, PrizeModel, TransactionModel, AggregatedDepositModel, LeaderboardItemModel } from 'models';
import { DenomsConstants, LUM_COINGECKO_ID, LUM_WALLET_LINK, WalletProvider, FirebaseConstants, ApiConstants, PrizesConstants, NavigationConstants } from 'constant';
import { LumWalletModel, OtherWalletModel, PoolModel, PrizeModel, TransactionModel, AggregatedDepositModel, LeaderboardItemModel, DepositModel } from 'models';
import { RootModel } from '.';
import { LumApi } from 'api';

Expand Down Expand Up @@ -384,7 +384,7 @@ export const wallet = createModel<RootModel>()({
console.warn((e as Error).message);
}
},
async reloadWalletInfos({ address, force = true, init = false, drops = false }: { address: string; force?: boolean; init?: boolean; drops: boolean }, state) {
async reloadWalletInfos({ address, force = true, init = false, drops = false }: { address: string; force?: boolean; init?: boolean; drops?: boolean }, state) {
if (!force && Date.now() - state.wallet.autoReloadTimestamp < 1000 * 60 * 3) {
return;
}
Expand Down

0 comments on commit 74c3a9e

Please sign in to comment.