From 0c7bdef832e279d78c46bf5312e6a620f95fad55 Mon Sep 17 00:00:00 2001 From: mperdomo-bc <97296851+mperdomo-bc@users.noreply.github.com> Date: Tue, 23 Jan 2024 15:00:35 -0300 Subject: [PATCH] chore(vars): remove unused vars (#6245) --- .../Chart/hooks/useTimeScale/useTimeScale.ts | 2 +- .../src/components/DragAndDrop/index.tsx | 2 +- .../UploadAndVerify.stories.tsx | 2 +- .../components/Form/CodeInputBoxes/index.js | 37 ------------------- .../LazyLoadContainer/LazyLoadContainer.tsx | 2 +- .../src/components/Terms/index.tsx | 24 ++++++------ .../src/data/auth/sagas.ts | 9 +---- .../src/data/components/brokerage/sagas.ts | 1 - .../src/data/components/dex/sagas.ts | 2 +- .../src/data/components/interest/sagas.ts | 3 +- .../interestUploadDocument/sagas.ts | 2 +- .../src/data/components/nfts/sagas.ts | 9 +---- .../src/data/components/refresh/sagas.ts | 2 +- .../src/data/components/sendBch/sagas.ts | 2 +- .../src/data/components/sendEth/sagas.ts | 1 - .../src/data/form/actions.ts | 2 - .../src/data/logs/slice.js | 2 +- .../src/data/modules/addressesBch/sagas.js | 2 +- .../src/data/modules/profile/sagas.ts | 2 - .../src/data/modules/profile/types.ts | 1 - .../src/data/modules/rates/sagas.js | 5 +-- .../src/data/session/sagas.ts | 1 - .../src/data/signup/sagas.ts | 1 - .../src/data/signup/slice.ts | 1 - .../hooks/useCoinCheck/useCoinCheck.types.ts | 2 +- .../src/hooks/useDebounce/useDebounce.ts | 2 +- .../src/layouts/Nfts/Nfts.tsx | 2 +- .../Bch/SendBch/FirstStep/template.loading.js | 2 +- .../Bch/SendBch/FirstStep/validation.js | 2 +- .../SendBch/SecondStep/template.loading.js | 2 +- .../src/modals/Bch/SendBch/index.js | 2 +- .../Brokerage/Banks/AddBankPlaid/index.tsx | 2 +- .../Deposit/BankList/template.success.tsx | 2 +- .../Banks/Deposit/Confirm/DepositConfirm.tsx | 1 - .../DepositStatus/template.success.tsx | 3 +- .../Deposit/OpenBankingConnect/index.tsx | 2 +- .../Withdraw/WithdrawalDetails/index.tsx | 2 +- .../Btc/SendBtc/FirstStep/template.loading.js | 2 +- .../Btc/SendBtc/FirstStep/validation.js | 7 ++-- .../CheckoutConfirm/template.success.tsx | 2 +- .../BuySell/EnterAmount/Checkout/index.tsx | 4 -- .../EnterAmount/Checkout/validation.tsx | 1 - .../BuySell/OpenBankingConnect/index.tsx | 1 - .../src/modals/BuySell/PreviewSell/index.tsx | 9 +---- .../TransactionList.template.tsx | 12 ++---- .../ActiveRewards/ActiveRewards.model.tsx | 1 - .../WithdrawalForm/template.success.tsx | 1 - .../Interest/WithdrawalForm/validation.tsx | 2 - .../AccountSummary.template.success.tsx | 3 +- .../WithdrawalForm.template.success.tsx | 10 +---- .../Earn/Staking/WithdrawalForm/index.tsx | 3 +- .../Eth/SendEth/FirstStep/template.loading.js | 2 +- .../SendEth/SecondStep/template.loading.js | 2 +- .../Nfts/NftOrder/CancelOffer/index.tsx | 1 - .../NftOrder/MakeOffer/Collection.fees.tsx | 4 +- .../src/scenes/SofiLanding/template.error.tsx | 6 +-- .../src/network/api/sofi/index.ts | 10 ++--- 57 files changed, 62 insertions(+), 164 deletions(-) delete mode 100644 packages/blockchain-wallet-v4-frontend/src/components/Form/CodeInputBoxes/index.js diff --git a/packages/blockchain-wallet-v4-frontend/src/components/Chart/hooks/useTimeScale/useTimeScale.ts b/packages/blockchain-wallet-v4-frontend/src/components/Chart/hooks/useTimeScale/useTimeScale.ts index 25f683be1bb..c9a1a3e4353 100644 --- a/packages/blockchain-wallet-v4-frontend/src/components/Chart/hooks/useTimeScale/useTimeScale.ts +++ b/packages/blockchain-wallet-v4-frontend/src/components/Chart/hooks/useTimeScale/useTimeScale.ts @@ -1,5 +1,5 @@ import { useMemo } from 'react' -import { scaleTime, TimeDomain } from '@visx/scale' +import { scaleTime } from '@visx/scale' import { extent } from 'd3-array' export const useTimeScale = ({ diff --git a/packages/blockchain-wallet-v4-frontend/src/components/DragAndDrop/index.tsx b/packages/blockchain-wallet-v4-frontend/src/components/DragAndDrop/index.tsx index 06d766566a3..a3e83115d6d 100644 --- a/packages/blockchain-wallet-v4-frontend/src/components/DragAndDrop/index.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/components/DragAndDrop/index.tsx @@ -142,7 +142,7 @@ const DragAndDrop = (props: Props) => { } } - const openUploader = (e) => { + const openUploader = (_) => { if (inputFile && inputFile.current && inputFile.current !== undefined) { inputFile.current.click() } diff --git a/packages/blockchain-wallet-v4-frontend/src/components/Flyout/InterestUploadDocuments/UploadAndVerify.stories.tsx b/packages/blockchain-wallet-v4-frontend/src/components/Flyout/InterestUploadDocuments/UploadAndVerify.stories.tsx index 4ae335ec846..17a4a37968b 100644 --- a/packages/blockchain-wallet-v4-frontend/src/components/Flyout/InterestUploadDocuments/UploadAndVerify.stories.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/components/Flyout/InterestUploadDocuments/UploadAndVerify.stories.tsx @@ -15,7 +15,7 @@ export default { }, nextStep: () => {}, previousStep: () => {}, - submitData: (files) => {} + submitData: (_) => {} }, component: UploadAndVerify, decorators: [ diff --git a/packages/blockchain-wallet-v4-frontend/src/components/Form/CodeInputBoxes/index.js b/packages/blockchain-wallet-v4-frontend/src/components/Form/CodeInputBoxes/index.js deleted file mode 100644 index 41a64a73021..00000000000 --- a/packages/blockchain-wallet-v4-frontend/src/components/Form/CodeInputBoxes/index.js +++ /dev/null @@ -1,37 +0,0 @@ -import React from 'react' -import styled from 'styled-components' -// import { Text } from 'blockchain-info-components' - -const Container = styled.div` - position: relative; - display: flex; - flex-direction: column; - justify-content: flex-end; - align-items: flex-start; - width: 100%; - height: 40px; -` -// const Error = styled(Text)` -// position: absolute; -// display: block; -// top: 40px; -// left: 0; -// height: 15px; -// ` -// const getErrorState = (meta) => { -// return !meta.touched ? 'initial' : (meta.invalid ? 'invalid' : 'valid') -// } - -const CodeInputBoxes = (field) => { - // const errorState = getErrorState(field.meta) - - return ( - - code input boxes - {/* */} - {/* {field.meta.touched && field.meta.error && {field.meta.error}} */} - - ) -} - -export default CodeInputBoxes diff --git a/packages/blockchain-wallet-v4-frontend/src/components/LazyLoadContainer/LazyLoadContainer.tsx b/packages/blockchain-wallet-v4-frontend/src/components/LazyLoadContainer/LazyLoadContainer.tsx index 91475270bba..c55b5e628b2 100644 --- a/packages/blockchain-wallet-v4-frontend/src/components/LazyLoadContainer/LazyLoadContainer.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/components/LazyLoadContainer/LazyLoadContainer.tsx @@ -1,4 +1,4 @@ -import React, { ReactNode } from 'react' +import React from 'react' import styled from 'styled-components' // Wrapper is static size diff --git a/packages/blockchain-wallet-v4-frontend/src/components/Terms/index.tsx b/packages/blockchain-wallet-v4-frontend/src/components/Terms/index.tsx index d0859c7e010..b187854c7d1 100644 --- a/packages/blockchain-wallet-v4-frontend/src/components/Terms/index.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/components/Terms/index.tsx @@ -4,22 +4,22 @@ import styled from 'styled-components' import { Link, Text } from 'blockchain-info-components' -const TermsContainer = styled.div<{ inline?: boolean; isCentered?: boolean }>` +const TermsContainer = styled.div<{ inline?: boolean }>` & > * { display: ${(props) => (props.inline ? 'inline' : 'inline-block')}; } - ${(props) => - props.isCentered && - ` - text-align: center; - `}; ` -const Terms = (props) => { - const { company, isCentered = null, recovery, sofi } = props + +type Props = { + company?: string + recovery?: boolean +} + +const Terms = ({ company, recovery }: Props) => { switch (company) { case 'blockchain-kyc': return ( - + { ) case 'sofi': return ( - + { ) case 'sofi-bakkt': return ( - + { ) default: return ( - + {recovery ? ( { const logLocation = 'auth/sagas' const { createExchangeUser, createUser, waitForUserData } = profileSagas({ @@ -63,8 +63,6 @@ export default ({ api, coreSagas, networks }) => { const { saveGoals } = goalSagas({ api, coreSagas, networks }) const { generateCaptchaToken, startCoinWebsockets } = miscSagas() - const LOGIN_FORM = 'login' - const authNabu = function* (firstLogin?: boolean) { yield put( actions.components.identityVerification.fetchSupportedCountries({ scope: CountryScope.KYC }) @@ -372,9 +370,6 @@ export default ({ api, coreSagas, networks }) => { const createExchangeUserFlag = (yield select( selectors.core.walletOptions.getCreateExchangeUserOnSignupOrLogin )).getOrElse(false) - const associateBeforeEmailVerification = (yield select( - selectors.core.walletOptions.getAssociateSofiBeforeEmailVerification - )).getOrElse(false) if (!isAccountReset && !recovery && createExchangeUserFlag) { if (firstLogin) { diff --git a/packages/blockchain-wallet-v4-frontend/src/data/components/brokerage/sagas.ts b/packages/blockchain-wallet-v4-frontend/src/data/components/brokerage/sagas.ts index 9621758d371..79d70f3c459 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/components/brokerage/sagas.ts +++ b/packages/blockchain-wallet-v4-frontend/src/data/components/brokerage/sagas.ts @@ -23,7 +23,6 @@ import { BrokerageModalOriginType, BSCheckoutFormValuesType, CustodialSanctionsEnum, - DeleteBankEndpointTypes, ModalName, ProductEligibilityForUser, VerifyIdentityOriginType diff --git a/packages/blockchain-wallet-v4-frontend/src/data/components/dex/sagas.ts b/packages/blockchain-wallet-v4-frontend/src/data/components/dex/sagas.ts index de76a02421d..57c9d798ba7 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/components/dex/sagas.ts +++ b/packages/blockchain-wallet-v4-frontend/src/data/components/dex/sagas.ts @@ -16,7 +16,7 @@ import { promptForSecondPassword } from 'services/sagas' import * as S from './selectors' import { actions as A } from './slice' -import { DexSwapForm, DexSwapSide, DexSwapSteps } from './types' +import { DexSwapForm, DexSwapSteps } from './types' import { getValidSwapAmount } from './utils' import { parseRawTx } from './utils/parseRawTx' diff --git a/packages/blockchain-wallet-v4-frontend/src/data/components/interest/sagas.ts b/packages/blockchain-wallet-v4-frontend/src/data/components/interest/sagas.ts index 248d3eb8eaf..fc22c6d3767 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/components/interest/sagas.ts +++ b/packages/blockchain-wallet-v4-frontend/src/data/components/interest/sagas.ts @@ -43,8 +43,7 @@ import { EarnTransactionType, PendingTransactionType, RewardsDepositFormType, - StakingDepositFormType, - StakingWithdrawalFormType + StakingDepositFormType } from './types' const PASSIVE_REWARDS_DEPOSIT_FORM = 'passiveRewardsDepositForm' diff --git a/packages/blockchain-wallet-v4-frontend/src/data/components/interestUploadDocument/sagas.ts b/packages/blockchain-wallet-v4-frontend/src/data/components/interestUploadDocument/sagas.ts index d6d263db55e..6e9d7e0fdc6 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/components/interestUploadDocument/sagas.ts +++ b/packages/blockchain-wallet-v4-frontend/src/data/components/interestUploadDocument/sagas.ts @@ -1,4 +1,4 @@ -import { call, delay, put, select } from 'redux-saga/effects' +import { call, put, select } from 'redux-saga/effects' import { APIType } from '@core/network/api' import { errorHandler } from '@core/utils' diff --git a/packages/blockchain-wallet-v4-frontend/src/data/components/nfts/sagas.ts b/packages/blockchain-wallet-v4-frontend/src/data/components/nfts/sagas.ts index 1bdf7561f13..6ab748bc797 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/components/nfts/sagas.ts +++ b/packages/blockchain-wallet-v4-frontend/src/data/components/nfts/sagas.ts @@ -8,12 +8,7 @@ import { all, call, put, select } from 'redux-saga/effects' import { Exchange, Remote } from '@core' import { convertCoinToCoin } from '@core/exchange' import { APIType } from '@core/network/api' -import { - GasCalculationOperations, - GasDataI, - NftAsset, - NftTemplateParams -} from '@core/network/api/nfts/types' +import { GasCalculationOperations, GasDataI, NftAsset } from '@core/network/api/nfts/types' import { calculateGasFees, cancelNftOrder, @@ -875,7 +870,7 @@ export default ({ api, coreSagas, networks }: { api: APIType; coreSagas; network const handleRouterChange = function* (action) { if (action.payload.location.pathname.includes('/nfts/')) { const url = new URL(window.location.href) - const [hash, query] = url.href.split('#')[1].split('?') + const [, query] = url.href.split('#')[1].split('?') // @ts-ignore const params = Object.fromEntries(new URLSearchParams(query)) diff --git a/packages/blockchain-wallet-v4-frontend/src/data/components/refresh/sagas.ts b/packages/blockchain-wallet-v4-frontend/src/data/components/refresh/sagas.ts index b64bf088609..007c817fe85 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/components/refresh/sagas.ts +++ b/packages/blockchain-wallet-v4-frontend/src/data/components/refresh/sagas.ts @@ -1,4 +1,4 @@ -import { contains, toUpper } from 'ramda' +import { toUpper } from 'ramda' import { call, put, select } from 'redux-saga/effects' import { actions, selectors } from 'data' diff --git a/packages/blockchain-wallet-v4-frontend/src/data/components/sendBch/sagas.ts b/packages/blockchain-wallet-v4-frontend/src/data/components/sendBch/sagas.ts index c1cdf51979f..ca2fd85756f 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/components/sendBch/sagas.ts +++ b/packages/blockchain-wallet-v4-frontend/src/data/components/sendBch/sagas.ts @@ -2,7 +2,7 @@ import BigNumber from 'bignumber.js' import bip21 from 'bip21' import { add, equals, hasPath, identity, includes, isNil, nth, path, pathOr, prop } from 'ramda' import { change, destroy, initialize, startSubmit, stopSubmit } from 'redux-form' -import { all, call, put, race, select, take } from 'redux-saga/effects' +import { call, put, race, select, take } from 'redux-saga/effects' import { Exchange, utils } from '@core' import { APIType } from '@core/network/api' diff --git a/packages/blockchain-wallet-v4-frontend/src/data/components/sendEth/sagas.ts b/packages/blockchain-wallet-v4-frontend/src/data/components/sendEth/sagas.ts index 3c2dbaf4057..f1a8ad628f9 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/components/sendEth/sagas.ts +++ b/packages/blockchain-wallet-v4-frontend/src/data/components/sendEth/sagas.ts @@ -169,7 +169,6 @@ export default ({ api, coreSagas, networks }: { api: APIType; coreSagas; network switch (action.meta.field) { case 'from': const fromPayload = payload as SendEthFormFromActionType['payload'] - let source switch (fromPayload.type) { case 'ACCOUNT': yield put(A.initialized(coin)) diff --git a/packages/blockchain-wallet-v4-frontend/src/data/form/actions.ts b/packages/blockchain-wallet-v4-frontend/src/data/form/actions.ts index 2b9015f6505..64772ed337f 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/form/actions.ts +++ b/packages/blockchain-wallet-v4-frontend/src/data/form/actions.ts @@ -1,5 +1,3 @@ -import * as AT from './actionTypes' - export { arrayInsert, arrayMove, diff --git a/packages/blockchain-wallet-v4-frontend/src/data/logs/slice.js b/packages/blockchain-wallet-v4-frontend/src/data/logs/slice.js index 0cbc6ddefcd..0d3279c122e 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/logs/slice.js +++ b/packages/blockchain-wallet-v4-frontend/src/data/logs/slice.js @@ -1,4 +1,4 @@ -import { createSlice, PayloadAction } from '@reduxjs/toolkit' +import { createSlice } from '@reduxjs/toolkit' import LOG_LEVELS from './model' diff --git a/packages/blockchain-wallet-v4-frontend/src/data/modules/addressesBch/sagas.js b/packages/blockchain-wallet-v4-frontend/src/data/modules/addressesBch/sagas.js index b169baee266..d4c6f2c2230 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/modules/addressesBch/sagas.js +++ b/packages/blockchain-wallet-v4-frontend/src/data/modules/addressesBch/sagas.js @@ -9,7 +9,7 @@ import { promptForInput } from 'services/sagas' const { toCashAddr } = utils.bch const GAP_LIMIT = 20 -export default ({ coreSagas, networks }) => { +export default ({ networks }) => { const logLocation = 'modules/addressesBch/sagas' const editBchAccountLabel = function* (action) { diff --git a/packages/blockchain-wallet-v4-frontend/src/data/modules/profile/sagas.ts b/packages/blockchain-wallet-v4-frontend/src/data/modules/profile/sagas.ts index 1e823db425f..5f24d72e4be 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/modules/profile/sagas.ts +++ b/packages/blockchain-wallet-v4-frontend/src/data/modules/profile/sagas.ts @@ -1,6 +1,5 @@ import sha256 from 'crypto-js/sha256' import { differenceInMilliseconds, subSeconds } from 'date-fns' -import { query } from 'express' import { compose, equals, prop, sortBy, tail } from 'ramda' import { stopSubmit } from 'redux-form' import { call, cancel, delay, fork, put, race, select, spawn, take } from 'redux-saga/effects' @@ -12,7 +11,6 @@ import { actions, actionTypes, selectors } from 'data' import { LOGIN_FORM } from 'data/auth/model' import { sendMessageToMobile } from 'data/auth/sagas.mobile' import { Analytics, AuthMagicLink, ModalName, PlatformTypes, ProductAuthOptions } from 'data/types' -import { isNabuError, NabuError } from 'services/errors' import { promptForSecondPassword } from 'services/sagas' import * as A from './actions' diff --git a/packages/blockchain-wallet-v4-frontend/src/data/modules/profile/types.ts b/packages/blockchain-wallet-v4-frontend/src/data/modules/profile/types.ts index 234ef6685b8..0079b40235e 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/modules/profile/types.ts +++ b/packages/blockchain-wallet-v4-frontend/src/data/modules/profile/types.ts @@ -1,5 +1,4 @@ import { AxiosError } from 'axios' -import { type } from 'os' import { SofiMigrationStatusResponseType } from '@core/network/api/sofi/types' import type { diff --git a/packages/blockchain-wallet-v4-frontend/src/data/modules/rates/sagas.js b/packages/blockchain-wallet-v4-frontend/src/data/modules/rates/sagas.js index e2a3ec7044d..e888c40fbf1 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/modules/rates/sagas.js +++ b/packages/blockchain-wallet-v4-frontend/src/data/modules/rates/sagas.js @@ -1,10 +1,9 @@ -import { and, compose, head, last, prop } from 'ramda' import { call, put, select } from 'redux-saga/effects' -import { actions, selectors } from 'data' +import { actions } from 'data' import * as A from './actions' -import { configEquals, splitPair } from './model' +import { configEquals } from './model' import * as S from './selectors' export default ({ api }) => { diff --git a/packages/blockchain-wallet-v4-frontend/src/data/session/sagas.ts b/packages/blockchain-wallet-v4-frontend/src/data/session/sagas.ts index b7e123ace87..2ad8d9f5ab8 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/session/sagas.ts +++ b/packages/blockchain-wallet-v4-frontend/src/data/session/sagas.ts @@ -50,7 +50,6 @@ export default ({ api }) => { try { const guid = yield select(selectors.core.wallet.getGuid) const email = (yield select(selectors.core.settings.getEmail)).getOrElse(undefined) - const unified = yield select(selectors.cache.getUnifiedAccountStatus) const sessionToken = yield select(selectors.session.getWalletSessionId, guid, email) yield call(api.deauthorizeBrowser, sessionToken) yield put(actions.cache.removeStoredLogin()) diff --git a/packages/blockchain-wallet-v4-frontend/src/data/signup/sagas.ts b/packages/blockchain-wallet-v4-frontend/src/data/signup/sagas.ts index 4389778e1a5..3215b56f187 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/signup/sagas.ts +++ b/packages/blockchain-wallet-v4-frontend/src/data/signup/sagas.ts @@ -26,7 +26,6 @@ import { askSecondPasswordEnhancer } from 'services/sagas' export default ({ api, coreSagas, networks }) => { const logLocation = 'auth/sagas' - const SIGNUP_FORM = 'register' const { createExchangeUser, createUser, generateRetailToken, setSession } = profileSagas({ api, coreSagas, diff --git a/packages/blockchain-wallet-v4-frontend/src/data/signup/slice.ts b/packages/blockchain-wallet-v4-frontend/src/data/signup/slice.ts index 05aa2d86aac..a46868f4402 100644 --- a/packages/blockchain-wallet-v4-frontend/src/data/signup/slice.ts +++ b/packages/blockchain-wallet-v4-frontend/src/data/signup/slice.ts @@ -1,5 +1,4 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit' -import { boolean } from 'zod' import { Remote } from '@core' diff --git a/packages/blockchain-wallet-v4-frontend/src/hooks/useCoinCheck/useCoinCheck.types.ts b/packages/blockchain-wallet-v4-frontend/src/hooks/useCoinCheck/useCoinCheck.types.ts index c343fec4448..4eae2c536a5 100644 --- a/packages/blockchain-wallet-v4-frontend/src/hooks/useCoinCheck/useCoinCheck.types.ts +++ b/packages/blockchain-wallet-v4-frontend/src/hooks/useCoinCheck/useCoinCheck.types.ts @@ -1,4 +1,4 @@ -import { CoinType, Erc20CoinType, WalletFiatEnum, WalletFiatType } from '@core/types' +import { CoinType, Erc20CoinType, WalletFiatType } from '@core/types' export type CoinCheckHookHelpers = { isBCH: (coin: CoinType) => boolean diff --git a/packages/blockchain-wallet-v4-frontend/src/hooks/useDebounce/useDebounce.ts b/packages/blockchain-wallet-v4-frontend/src/hooks/useDebounce/useDebounce.ts index 22c2b645c5c..12cf2a04463 100644 --- a/packages/blockchain-wallet-v4-frontend/src/hooks/useDebounce/useDebounce.ts +++ b/packages/blockchain-wallet-v4-frontend/src/hooks/useDebounce/useDebounce.ts @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react' +import { useEffect, useState } from 'react' export const useDebounce = (val: T, delay: number): T => { const [debounceVal, setDebounceVal] = useState(val) diff --git a/packages/blockchain-wallet-v4-frontend/src/layouts/Nfts/Nfts.tsx b/packages/blockchain-wallet-v4-frontend/src/layouts/Nfts/Nfts.tsx index caf84f3b3fc..317707f1901 100644 --- a/packages/blockchain-wallet-v4-frontend/src/layouts/Nfts/Nfts.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/layouts/Nfts/Nfts.tsx @@ -1,4 +1,4 @@ -import React, { FC, useEffect } from 'react' +import React, { useEffect } from 'react' import { connect, ConnectedProps } from 'react-redux' import { Redirect, Route, withRouter } from 'react-router-dom' import { bindActionCreators } from 'redux' diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Bch/SendBch/FirstStep/template.loading.js b/packages/blockchain-wallet-v4-frontend/src/modals/Bch/SendBch/FirstStep/template.loading.js index ef8b9b3830c..30b6943424b 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Bch/SendBch/FirstStep/template.loading.js +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Bch/SendBch/FirstStep/template.loading.js @@ -10,7 +10,7 @@ const Wrapper = styled.div` box-sizing: border-box; ` -export default (props) => ( +export default () => ( diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Bch/SendBch/FirstStep/validation.js b/packages/blockchain-wallet-v4-frontend/src/modals/Bch/SendBch/FirstStep/validation.js index 0211cdf1cc1..f2f13a54574 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Bch/SendBch/FirstStep/validation.js +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Bch/SendBch/FirstStep/validation.js @@ -22,7 +22,7 @@ export const insufficientFunds = (value, allValues, props) => { return getEffectiveBalance(props) > 0 ? undefined : } -export const invalidAmount = (value, allValues, props) => { +export const invalidAmount = (value) => { const valueBch = prop('coin', value) const valueSatoshi = Exchange.convertCoinToCoin({ baseToStandard: false, diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Bch/SendBch/SecondStep/template.loading.js b/packages/blockchain-wallet-v4-frontend/src/modals/Bch/SendBch/SecondStep/template.loading.js index 4b43e1de9be..456c71c3b56 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Bch/SendBch/SecondStep/template.loading.js +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Bch/SendBch/SecondStep/template.loading.js @@ -9,7 +9,7 @@ const Wrapper = styled.div` box-sizing: border-box; ` -export default (props) => { +export default () => { return ( diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Bch/SendBch/index.js b/packages/blockchain-wallet-v4-frontend/src/modals/Bch/SendBch/index.js index 5357038c993..bdac1454453 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Bch/SendBch/index.js +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Bch/SendBch/index.js @@ -3,7 +3,7 @@ import { connect } from 'react-redux' import PropTypes from 'prop-types' import { bindActionCreators, compose } from 'redux' -import { actions, model, selectors } from 'data' +import { actions, selectors } from 'data' import modalEnhancer from 'providers/ModalEnhancer' import FirstStep from './FirstStep' diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/AddBankPlaid/index.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/AddBankPlaid/index.tsx index bd028d1ae1f..07d062e82c5 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/AddBankPlaid/index.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/AddBankPlaid/index.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react' +import React, { useEffect } from 'react' import { connect, ConnectedProps, useDispatch } from 'react-redux' import { compose } from 'redux' diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Deposit/BankList/template.success.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Deposit/BankList/template.success.tsx index 8a3cfaf042d..62aa9cdb605 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Deposit/BankList/template.success.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Deposit/BankList/template.success.tsx @@ -2,7 +2,7 @@ import React, { ReactElement, useMemo } from 'react' import { FormattedMessage } from 'react-intl' import styled from 'styled-components' -import { BeneficiaryType, NabuSymbolNumberType } from '@core/types' +import { BeneficiaryType } from '@core/types' import { Icon, Image, Text } from 'blockchain-info-components' import { AddNewButton } from 'components/Brokerage' import { FlyoutWrapper } from 'components/Flyout' diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Deposit/Confirm/DepositConfirm.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Deposit/Confirm/DepositConfirm.tsx index f6e0688ec81..1ca8dfbbfcd 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Deposit/Confirm/DepositConfirm.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Deposit/Confirm/DepositConfirm.tsx @@ -2,7 +2,6 @@ import React, { useCallback, useState } from 'react' import { FormattedMessage } from 'react-intl' import { useDispatch, useSelector } from 'react-redux' import { addDays, format } from 'date-fns' -import styled from 'styled-components' import { fiatToString } from '@core/exchange/utils' import { FiatType } from '@core/types' diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Deposit/DepositStatus/template.success.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Deposit/DepositStatus/template.success.tsx index 451c6671877..06170212bd3 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Deposit/DepositStatus/template.success.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Deposit/DepositStatus/template.success.tsx @@ -1,10 +1,9 @@ import React from 'react' import { FormattedMessage } from 'react-intl' -import { InjectedFormProps } from 'redux-form' import styled from 'styled-components' import { fiatToString } from '@core/exchange/utils' -import { BSTransactionStateEnum, FiatType } from '@core/types' +import { BSTransactionStateEnum } from '@core/types' import { Button, Icon, Text } from 'blockchain-info-components' import { FlyoutWrapper } from 'components/Flyout' import { BankPartners } from 'data/types' diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Deposit/OpenBankingConnect/index.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Deposit/OpenBankingConnect/index.tsx index 2bd8eca656d..56a276e353f 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Deposit/OpenBankingConnect/index.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Deposit/OpenBankingConnect/index.tsx @@ -3,7 +3,7 @@ import { connect, ConnectedProps } from 'react-redux' import { bindActionCreators, Dispatch } from 'redux' import { Remote } from '@core' -import { BSTransactionType, WalletFiatType } from '@core/types' +import { BSTransactionType } from '@core/types' import DataError from 'components/DataError' import { actions, selectors } from 'data' import { RootState } from 'data/rootReducer' diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Withdraw/WithdrawalDetails/index.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Withdraw/WithdrawalDetails/index.tsx index 1d4f2d7caa1..a48019e32aa 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Withdraw/WithdrawalDetails/index.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Withdraw/WithdrawalDetails/index.tsx @@ -3,7 +3,7 @@ import { FormattedMessage } from 'react-intl' import styled from 'styled-components' import { fiatToString } from '@core/exchange/utils' -import { WalletFiatEnum, WalletFiatType, WithdrawResponseType } from '@core/types' +import { WalletFiatType, WithdrawResponseType } from '@core/types' import { Button, Icon, Text } from 'blockchain-info-components' import { UserDataType } from 'data/types' diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Btc/SendBtc/FirstStep/template.loading.js b/packages/blockchain-wallet-v4-frontend/src/modals/Btc/SendBtc/FirstStep/template.loading.js index 4a34dec6fa6..0d32e0077cc 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Btc/SendBtc/FirstStep/template.loading.js +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Btc/SendBtc/FirstStep/template.loading.js @@ -10,7 +10,7 @@ const Wrapper = styled.div` box-sizing: border-box; ` -export default (props) => ( +export default () => ( diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Btc/SendBtc/FirstStep/validation.js b/packages/blockchain-wallet-v4-frontend/src/modals/Btc/SendBtc/FirstStep/validation.js index ae71dc8fca6..673e1f6e94a 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Btc/SendBtc/FirstStep/validation.js +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Btc/SendBtc/FirstStep/validation.js @@ -30,7 +30,7 @@ export const insufficientFunds = (value, allValues, props) => { return effectiveBalance > 0 && DUST <= effectiveBalance ? undefined : } -export const invalidAmount = (value, allValues, props) => { +export const invalidAmount = (value) => { const valueBtc = prop('coin', value) const valueSatoshi = Exchange.convertCoinToCoin({ baseToStandard: false, @@ -40,7 +40,7 @@ export const invalidAmount = (value, allValues, props) => { return valueSatoshi > 0 ? undefined : } -export const minimumAmount = (value, allValues, props) => { +export const minimumAmount = (value) => { const valueBtc = prop('coin', value) const valueSatoshi = Exchange.convertCoinToCoin({ baseToStandard: false, @@ -64,8 +64,7 @@ export const maximumAmount = (value, allValues, props) => { export const minimumFeePerByte = (value, allValues, props) => value && parseInt(value) >= props.minFeePerByte ? undefined : -export const minimumOneSatoshi = (value, allValues, props) => - value >= 1 ? undefined : +export const minimumOneSatoshi = (value) => (value >= 1 ? undefined : ) export const maximumFeePerByte = (value, allValues, props) => value && parseInt(value) <= props.maxFeePerByte ? undefined : diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/CheckoutConfirm/template.success.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/CheckoutConfirm/template.success.tsx index bc262087d2f..c698cbf7dc3 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/CheckoutConfirm/template.success.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/CheckoutConfirm/template.success.tsx @@ -220,7 +220,7 @@ const Success: React.FC & Props> = (p properties: {} }) - const { bankAccounts, cards, sbBalances } = props.data.getOrElse({} as SuccessStateType) + const { bankAccounts, sbBalances } = props.data.getOrElse({} as SuccessStateType) const inputCurrency = props.quoteSummaryViewModel.fiatCode as WalletFiatType diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/EnterAmount/Checkout/index.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/EnterAmount/Checkout/index.tsx index 7929450d46f..288e28efcbf 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/EnterAmount/Checkout/index.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/EnterAmount/Checkout/index.tsx @@ -48,10 +48,6 @@ const Checkout = (props: Props) => { ) const buySellGoal = goals.find((goal) => goal.name === 'buySell') - const modalOrigin = useSelector((state: RootState) => - selectors.components.buySell.getOrigin(state) - ) - const methodRef = useRef() const handleSubmit = () => { diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/EnterAmount/Checkout/validation.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/EnterAmount/Checkout/validation.tsx index ea84b907471..b6f6dcd54bb 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/EnterAmount/Checkout/validation.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/EnterAmount/Checkout/validation.tsx @@ -9,7 +9,6 @@ import { SwapUserLimitsType } from '@core/types' import { convertBaseToStandard } from 'data/components/exchange/services' -import { components } from 'data/model' import { BSCheckoutFormValuesType, SwapAccountType } from 'data/types' import { Props } from './template.success' diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/OpenBankingConnect/index.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/OpenBankingConnect/index.tsx index 8f1b54f922a..d46da733f98 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/OpenBankingConnect/index.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/OpenBankingConnect/index.tsx @@ -3,7 +3,6 @@ import { connect, ConnectedProps } from 'react-redux' import { bindActionCreators, Dispatch } from 'redux' import { Remote } from '@core' -import { WalletFiatType } from '@core/types' import DataError from 'components/DataError' import { actions, selectors } from 'data' import { RootState } from 'data/rootReducer' diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/PreviewSell/index.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/PreviewSell/index.tsx index 9b9b9cdefa9..0fb06f0af1d 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/PreviewSell/index.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/PreviewSell/index.tsx @@ -7,14 +7,7 @@ import { clearSubmitErrors, InjectedFormProps, reduxForm } from 'redux-form' import { Exchange } from '@core' import { coinToString, formatFiat } from '@core/exchange/utils' -import { - BSOrderActionType, - BSPairType, - CoinfigType, - CoinType, - PaymentValue, - RatesType -} from '@core/types' +import { BSOrderActionType, BSPairType, CoinType, PaymentValue, RatesType } from '@core/types' import { Icon, Link, SkeletonRectangle, Text, TextGroup } from 'blockchain-info-components' import { ErrorCartridge } from 'components/Cartridge' import { FlyoutWrapper, Value } from 'components/Flyout' diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/DebitCard/TransactionList/TransactionList.template.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/DebitCard/TransactionList/TransactionList.template.tsx index fe5424f3fc8..503a4faabd1 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/DebitCard/TransactionList/TransactionList.template.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/DebitCard/TransactionList/TransactionList.template.tsx @@ -12,9 +12,7 @@ import { Props } from './TransactionList' const TransactionList = (props: Props) => { const { close } = props - const { data, isLoading, isNotAsked } = useRemote( - selectors.components.debitCard.getCardTransactions - ) + const { data } = useRemote(selectors.components.debitCard.getCardTransactions) const [show, setShow] = useState(true) @@ -32,11 +30,9 @@ const TransactionList = (props: Props) => { - <> - {data?.map((d) => ( -
{d.id}
- ))} - + {data?.map((d) => ( +
{d.id}
+ ))}
diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Earn/ActiveRewards/ActiveRewards.model.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/Earn/ActiveRewards/ActiveRewards.model.tsx index 72a627194a6..eaacb6a47f3 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Earn/ActiveRewards/ActiveRewards.model.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Earn/ActiveRewards/ActiveRewards.model.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { PaletteColors, SemanticColors } from '@blockchain-com/constellation' import styled from 'styled-components' diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Interest/WithdrawalForm/template.success.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Interest/WithdrawalForm/template.success.tsx index 926bba5a802..bcf7651762e 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Interest/WithdrawalForm/template.success.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Interest/WithdrawalForm/template.success.tsx @@ -26,7 +26,6 @@ import { AmountAvailContainer, AmountFieldContainer, ArrowIcon, - Availability, BalanceItem, BalanceWrapper, Bottom, diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Interest/WithdrawalForm/validation.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Interest/WithdrawalForm/validation.tsx index 4f910d85582..c726c627388 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Interest/WithdrawalForm/validation.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Interest/WithdrawalForm/validation.tsx @@ -1,9 +1,7 @@ import React from 'react' import { FormattedMessage } from 'react-intl' import BigNumber from 'bignumber.js' -import { propEq } from 'ramda' -import { Exchange } from '@core' import { convertCoinToFiat } from '@core/exchange' import { convertBaseToStandard } from 'data/components/exchange/services' import { InterestWithdrawalFormType } from 'data/types' diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Staking/AccountSummary/AccountSummary.template.success.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Staking/AccountSummary/AccountSummary.template.success.tsx index b3645e7a7e9..61817ea9848 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Staking/AccountSummary/AccountSummary.template.success.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Staking/AccountSummary/AccountSummary.template.success.tsx @@ -23,7 +23,7 @@ import { import { Button, Icon, Link, Text } from 'blockchain-info-components' import CoinDisplay from 'components/Display/CoinDisplay' import FiatDisplay from 'components/Display/FiatDisplay' -import { EarnStepMetaData, PendingTransactionType, PendingWithdrawalsType } from 'data/types' +import { EarnStepMetaData, PendingTransactionType } from 'data/types' import { EDDMessageContainer } from '../Staking.model' import { OwnProps as ParentProps } from '.' @@ -65,7 +65,6 @@ const AccountSummary: React.FC = (props) => { stakingLimits, stakingRates, stepMetadata, - totalBondingDeposits, walletCurrency } = props diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Staking/WithdrawalForm/WithdrawalForm.template.success.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Staking/WithdrawalForm/WithdrawalForm.template.success.tsx index 79914bd2d40..46f6ab6b103 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Staking/WithdrawalForm/WithdrawalForm.template.success.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Staking/WithdrawalForm/WithdrawalForm.template.success.tsx @@ -14,13 +14,7 @@ import { InjectedFormProps, reduxForm } from 'redux-form' import { Exchange } from '@core' import { convertCoinToFiat, convertFiatToCoin } from '@core/exchange' import { formatFiat } from '@core/exchange/utils' -import { - CoinType, - EarnAccountBalanceResponseType, - EarnBalanceType, - FiatType, - RatesType -} from '@core/types' +import { CoinType, EarnBalanceType, FiatType, RatesType } from '@core/types' import { Button, SpinningLoader } from 'blockchain-info-components' import AmountFieldInput from 'components/Form/AmountFieldInput' import { StakingWithdrawalFormType } from 'data/types' @@ -45,7 +39,7 @@ import { validate } from './WithdrawalForm.validation' const WithdrawalForm: React.FC> = (props) => { const dispatch = useDispatch() - const { analyticsActions, earnActions, formActions } = getActions(dispatch) + const { earnActions, formActions } = getActions(dispatch) const [percentageOfBalance, setPercentageOfBalance] = useState(0) const { diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Staking/WithdrawalForm/index.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Staking/WithdrawalForm/index.tsx index 03c8e670a5c..a57a1e998b1 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Staking/WithdrawalForm/index.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Earn/Staking/WithdrawalForm/index.tsx @@ -2,7 +2,6 @@ import React from 'react' import { useDispatch, useSelector } from 'react-redux' import { Exchange } from '@core' -import { convertFiatToCoin } from '@core/exchange' import DataError from 'components/DataError' import { useRemote } from 'hooks' @@ -14,7 +13,7 @@ import { RemotePropsType } from './WithdrawalForm.types' const WithdrawalForm = (props: Props) => { const dispatch = useDispatch() - const { analyticsActions, earnActions, formActions } = getActions(dispatch) + const { earnActions } = getActions(dispatch) const { data, error, isLoading, isNotAsked } = useRemote(getRemote) const { coin, displayCoin, formErrors, formValues, walletCurrency } = useSelector(getData) const { handleClose } = props diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Eth/SendEth/FirstStep/template.loading.js b/packages/blockchain-wallet-v4-frontend/src/modals/Eth/SendEth/FirstStep/template.loading.js index ef8b9b3830c..30b6943424b 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Eth/SendEth/FirstStep/template.loading.js +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Eth/SendEth/FirstStep/template.loading.js @@ -10,7 +10,7 @@ const Wrapper = styled.div` box-sizing: border-box; ` -export default (props) => ( +export default () => ( diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Eth/SendEth/SecondStep/template.loading.js b/packages/blockchain-wallet-v4-frontend/src/modals/Eth/SendEth/SecondStep/template.loading.js index bac2c3aeef7..4b64cdaba8b 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Eth/SendEth/SecondStep/template.loading.js +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Eth/SendEth/SecondStep/template.loading.js @@ -9,7 +9,7 @@ const Wrapper = styled.div` box-sizing: border-box; ` -export default (props) => { +export default () => { return ( diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Nfts/NftOrder/CancelOffer/index.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/Nfts/NftOrder/CancelOffer/index.tsx index 7b342e7e3da..376de70ee6a 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Nfts/NftOrder/CancelOffer/index.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Nfts/NftOrder/CancelOffer/index.tsx @@ -2,7 +2,6 @@ import React from 'react' import { FormattedMessage } from 'react-intl' import { getIsSharedStorefront } from 'blockchain-wallet-v4-frontend/src/scenes/Nfts/utils/NftUtils' -import { OPENSEA_SHARED_MARKETPLACE_RINKEBY } from '@core/redux/payment/nfts/constants' import { Text } from 'blockchain-info-components' import CoinDisplay from 'components/Display/CoinDisplay' import FiatDisplay from 'components/Display/FiatDisplay' diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Nfts/NftOrder/MakeOffer/Collection.fees.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/Nfts/NftOrder/MakeOffer/Collection.fees.tsx index bedbdd5dc12..3218d1ffc47 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Nfts/NftOrder/MakeOffer/Collection.fees.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Nfts/NftOrder/MakeOffer/Collection.fees.tsx @@ -1,8 +1,7 @@ -import React, { useEffect } from 'react' +import React from 'react' import { FormattedMessage } from 'react-intl' import BigNumber from 'bignumber.js' -import { NftAsset } from '@core/network/api/nfts/types' import { SpinningLoader, Text, TooltipHost, TooltipIcon } from 'blockchain-info-components' import CoinDisplay from 'components/Display/CoinDisplay' import FiatDisplay from 'components/Display/FiatDisplay' @@ -10,7 +9,6 @@ import { Flex } from 'components/Flex' import { RightAlign } from '../../components' import { Props as OwnProps } from '..' -import { NftMakeOfferFormValues } from '.' const Fees: React.FC = (props: Props) => { const { orderFlow } = props diff --git a/packages/blockchain-wallet-v4-frontend/src/scenes/SofiLanding/template.error.tsx b/packages/blockchain-wallet-v4-frontend/src/scenes/SofiLanding/template.error.tsx index 6dd064f2662..1f32d03072d 100644 --- a/packages/blockchain-wallet-v4-frontend/src/scenes/SofiLanding/template.error.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/scenes/SofiLanding/template.error.tsx @@ -2,7 +2,7 @@ import React from 'react' import { FormattedMessage } from 'react-intl' import styled from 'styled-components' -import { Button, Image, Text } from 'blockchain-info-components' +import { Image, Text } from 'blockchain-info-components' import { Wrapper } from 'components/Public' import { selectors } from 'data' import { useRemote } from 'hooks' @@ -15,10 +15,6 @@ const ContentWrapper = styled.div` ` const SofiErrorLanding = () => { - const { data, error, isLoading, isNotAsked } = useRemote( - selectors.modules.profile.getSofiUserData - ) - return ( diff --git a/packages/blockchain-wallet-v4/src/network/api/sofi/index.ts b/packages/blockchain-wallet-v4/src/network/api/sofi/index.ts index 51a17b178a2..a644d3377c9 100644 --- a/packages/blockchain-wallet-v4/src/network/api/sofi/index.ts +++ b/packages/blockchain-wallet-v4/src/network/api/sofi/index.ts @@ -1,10 +1,6 @@ -import { - SofiMigrationResponseType, - SofiMigrationStatusResponseType, - SofiUserMigrationStatus -} from './types' +import { SofiMigrationStatusResponseType } from './types' -export default ({ authorizedGet, authorizedPost, authorizedPut, get, nabuUrl, patch, post }) => { +export default ({ authorizedGet, authorizedPost, authorizedPut, get, nabuUrl }) => { const sofiMigrationStatusJwt = ( aesIV, aesCiphertext, @@ -32,7 +28,7 @@ export default ({ authorizedGet, authorizedPost, authorizedPut, get, nabuUrl, pa url: nabuUrl }) - const associateNabuUser = (aesIV, aesCiphertext, aesTag, aesKeyCiphertext, nabuSessionToken) => + const associateNabuUser = (aesIV, aesCiphertext, aesTag, aesKeyCiphertext) => authorizedPut({ contentType: 'application/json', endPoint: '/sofi/associate-nabu-user',