Skip to content

Commit f274f4a

Browse files
fix: Remove unused FFs
1 parent b42d56d commit f274f4a

File tree

14 files changed

+10
-260
lines changed

14 files changed

+10
-260
lines changed

webapp/src/components/HomePage/HomePage.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { Section } from '../../modules/vendor/decentraland/routing/types'
1313
import { VendorName } from '../../modules/vendor/types'
1414
import { AssetStatusFilter } from '../../utils/filters'
1515
import { AnalyticsVolumeDayData } from '../AnalyticsVolumeDayData'
16-
import { SmartWearablesLaunchModal } from '../Modals/FTU/SmartWearablesLaunchModal'
1716
import { ListsLaunchModal } from '../Modals/ListsLaunchModal'
1817
import { NavigationTab } from '../Navigation/Navigation.types'
1918
import { PageLayout } from '../PageLayout'
@@ -224,7 +223,6 @@ const HomePage = (props: Props) => {
224223
return (
225224
<PageLayout activeTab={NavigationTab.OVERVIEW}>
226225
<ListsLaunchModal />
227-
<SmartWearablesLaunchModal />
228226
{isCampaignHomepageBannerEnabled ? <Banner id={MARKETPLACE_HOMEPAGE_BANNER_ID} /> : null}
229227
<Page className="HomePage">
230228
<AnalyticsVolumeDayData />

webapp/src/components/Modals/BuyWithCryptoModal/BuyWithCryptoModal.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ export const BuyWithCryptoModal = (props: Props) => {
5050
isLoadingAuthorization,
5151
isSwitchingNetwork,
5252
isBuyWithCardPage,
53-
isMagicAutoSignEnabled,
5453
isUsingMagic,
5554
onSwitchNetwork,
5655
onGetGasCost,
@@ -257,9 +256,7 @@ export const BuyWithCryptoModal = (props: Props) => {
257256
{isSwitchingNetwork ? (
258257
<>
259258
<Loader inline active size="tiny" />
260-
{isMagicAutoSignEnabled && isUsingMagic
261-
? t('buy_with_crypto_modal.switching_network')
262-
: t('buy_with_crypto_modal.confirm_switch_network')}
259+
{isUsingMagic ? t('buy_with_crypto_modal.switching_network') : t('buy_with_crypto_modal.confirm_switch_network')}
263260
</>
264261
) : (
265262
t('buy_with_crypto_modal.switch_network', {
@@ -268,7 +265,7 @@ export const BuyWithCryptoModal = (props: Props) => {
268265
)}
269266
</Button>
270267
)
271-
}, [isSwitchingNetwork, onSwitchNetwork, selectedProviderChain, selectedChain, isMagicAutoSignEnabled, isUsingMagic])
268+
}, [isSwitchingNetwork, onSwitchNetwork, selectedProviderChain, selectedChain, isUsingMagic])
272269

273270
const handleBuyWithCard = useCallback(() => {
274271
if (onBuyWithCard) {
@@ -317,8 +314,7 @@ export const BuyWithCryptoModal = (props: Props) => {
317314
if (isFetchingRoute) {
318315
buttonText = null
319316
} else if (isBuyingAsset) {
320-
buttonText =
321-
isMagicAutoSignEnabled && isUsingMagic ? t('buy_with_crypto_modal.buying_asset') : t('buy_with_crypto_modal.confirm_transaction')
317+
buttonText = isUsingMagic ? t('buy_with_crypto_modal.buying_asset') : t('buy_with_crypto_modal.confirm_transaction')
322318
} else if (isLoadingAuthorization) {
323319
buttonText = t('buy_with_crypto_modal.authorizing_purchase')
324320
} else {
@@ -349,7 +345,6 @@ export const BuyWithCryptoModal = (props: Props) => {
349345
isBuyingAsset,
350346
isLoadingAuthorization,
351347
isFetchingBalance,
352-
isMagicAutoSignEnabled,
353348
isUsingMagic,
354349
onBuyNatively,
355350
handleCrossChainBuy,

webapp/src/components/Modals/FTU/SmartWearablesLaunchModal/SmartWearablesLaunchModal.container.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

webapp/src/components/Modals/FTU/SmartWearablesLaunchModal/SmartWearablesLaunchModal.module.css

Lines changed: 0 additions & 62 deletions
This file was deleted.

webapp/src/components/Modals/FTU/SmartWearablesLaunchModal/SmartWearablesLaunchModal.tsx

Lines changed: 0 additions & 87 deletions
This file was deleted.

webapp/src/components/Modals/FTU/SmartWearablesLaunchModal/SmartWearablesLaunchModal.types.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

webapp/src/components/Modals/FTU/SmartWearablesLaunchModal/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

webapp/src/components/Modals/RentalListingModal/AuthorizationStep/AuthorizationStep.container.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { getError, getLoading as getAuthorizationLoading } from 'decentraland-da
99
import { isLoadingType } from 'decentraland-dapps/dist/modules/loading/selectors'
1010
import { isWeb2Wallet } from 'decentraland-dapps/dist/modules/wallet/utils'
1111
import { ContractName, getContract } from 'decentraland-transactions'
12-
import { getIsMagicAutoSignEnabled } from '../../../../modules/features/selectors'
1312
import { RootState } from '../../../../modules/reducer'
1413
import { getPendingAuthorizationTransactions } from '../../../../modules/transaction/selectors'
1514
import { hasTransactionPending } from '../../../../modules/transaction/utils'
@@ -21,7 +20,7 @@ const mapState = (state: RootState, { nft }: OwnProps): MapStateProps => {
2120
const wallet = getWallet(state)
2221
return {
2322
address: getAddress(state)!,
24-
isWeb2AutoSigning: getIsMagicAutoSignEnabled(state) && wallet !== null && isWeb2Wallet(wallet),
23+
isWeb2AutoSigning: wallet !== null && isWeb2Wallet(wallet),
2524
isAuthorizing: hasTransactionPending(
2625
getPendingAuthorizationTransactions(state),
2726
getContract(ContractName.Rentals, nft.chainId).address,

webapp/src/components/Modals/SubmitTransactionModal/SubmitTransactionModal.container.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { connect } from 'react-redux'
22
import { isWeb2Wallet } from 'decentraland-dapps/dist/modules/wallet/utils'
3-
import { getIsMagicAutoSignEnabled } from '../../../modules/features/selectors'
43
import { RootState } from '../../../modules/reducer'
54
import { getWallet } from '../../../modules/wallet/selectors'
65
import SubmitTransactionModal from './SubmitTransactionModal'
@@ -9,7 +8,7 @@ import { MapStateProps } from './SubmitTransactionModal.types'
98
const mapState = (state: RootState): MapStateProps => {
109
const wallet = getWallet(state)
1110
return {
12-
showConfirmMessage: !(getIsMagicAutoSignEnabled(state) && wallet !== null && isWeb2Wallet(wallet))
11+
showConfirmMessage: !(wallet !== null && isWeb2Wallet(wallet))
1312
}
1413
}
1514

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { connect } from 'react-redux'
22
import { TransactionStatus } from 'decentraland-dapps/dist/modules/transaction/types'
33
import { isPending } from 'decentraland-dapps/dist/modules/transaction/utils'
4-
import { getIsChainSelectorEnabled, getIsNavbar2Enabled } from '../../modules/features/selectors'
54
import { getCurrentIdentity } from '../../modules/identity/selectors'
65
import { RootState } from '../../modules/reducer'
76
import { getTransactions } from '../../modules/transaction/selectors'
@@ -10,9 +9,7 @@ import { MapStateProps } from './Navbar.types'
109

1110
const mapState = (state: RootState): MapStateProps => ({
1211
hasPendingTransactions: getTransactions(state).some((tx: { status: TransactionStatus | null }) => isPending(tx.status)),
13-
identity: getCurrentIdentity(state) || undefined,
14-
isChainSelectorEnabled: getIsChainSelectorEnabled(state),
15-
isNavbar2Enabled: getIsNavbar2Enabled(state)
12+
identity: getCurrentIdentity(state) || undefined
1613
})
1714

1815
export default connect(mapState)(Navbar)

0 commit comments

Comments
 (0)