From f44e02b0012bec8b09c89535a7354280fac2020b Mon Sep 17 00:00:00 2001 From: Luis Perrone Date: Wed, 20 Nov 2024 15:23:03 -0600 Subject: [PATCH] Fix lint --- src/components/MakerHotspotImage.tsx | 1 - src/features/governance/ProposalScreen.tsx | 4 ++-- src/features/governance/ProxySearch.tsx | 4 ++-- src/features/hotspot-onboarding/OnboardingNav.tsx | 6 ------ src/services/HotspotService/ClaimTokensPage/index.tsx | 1 + src/utils/solanaUtils.ts | 3 ++- 6 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/components/MakerHotspotImage.tsx b/src/components/MakerHotspotImage.tsx index d11eae58..fe4acbda 100644 --- a/src/components/MakerHotspotImage.tsx +++ b/src/components/MakerHotspotImage.tsx @@ -1,7 +1,6 @@ import React, { useCallback } from 'react' import { BoxProps } from '@shopify/restyle' import { Theme } from '@theme/theme' -import { LayoutChangeEvent } from 'react-native' import ImageBox from './ImageBox' const MakerHotspotImage = ({ diff --git a/src/features/governance/ProposalScreen.tsx b/src/features/governance/ProposalScreen.tsx index 6ae2dec2..8dbb61cd 100644 --- a/src/features/governance/ProposalScreen.tsx +++ b/src/features/governance/ProposalScreen.tsx @@ -42,6 +42,7 @@ import { useAsync } from 'react-async-hook' import { useTranslation } from 'react-i18next' import { Edge } from 'react-native-safe-area-context' import ScrollBox from '@components/ScrollBox' +import { useColors } from '@theme/themeHooks' import { MessagePreview } from '../../solana/MessagePreview' import { useSolana } from '../../solana/SolanaProvider' import { useWalletSign } from '../../solana/WalletSignProvider' @@ -54,7 +55,6 @@ import { VoteChoiceWithMeta, VotingResultColors, } from './governanceTypes' -import { useColors } from '@theme/themeHooks' type Route = RouteProp export const ProposalScreen = () => { @@ -527,7 +527,7 @@ export const ProposalScreen = () => { titleColor="primaryBackground" LeadingComponent={ diff --git a/src/features/governance/ProxySearch.tsx b/src/features/governance/ProxySearch.tsx index 8ebb74ad..826389d9 100644 --- a/src/features/governance/ProxySearch.tsx +++ b/src/features/governance/ProxySearch.tsx @@ -16,8 +16,8 @@ import React, { useCallback, useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' import { FlatList } from 'react-native' import { useDebounce } from 'use-debounce' -import { GovernanceNavigationProp } from './governanceTypes' import { useColors } from '@theme/themeHooks' +import { GovernanceNavigationProp } from './governanceTypes' export const ProxySearch: React.FC<{ value: string @@ -136,7 +136,7 @@ export const ProxySearch: React.FC<{ backgroundColor="primaryText" titleColor="primaryBackground" Icon={BrowseVoters} - iconProps={{ color: colors['primaryBackground'] }} + iconProps={{ color: colors.primaryBackground }} borderRadius="2xl" ml="2" onPress={handleBrowseVoters} diff --git a/src/features/hotspot-onboarding/OnboardingNav.tsx b/src/features/hotspot-onboarding/OnboardingNav.tsx index 839a9b00..4b2980ca 100644 --- a/src/features/hotspot-onboarding/OnboardingNav.tsx +++ b/src/features/hotspot-onboarding/OnboardingNav.tsx @@ -4,7 +4,6 @@ import { } from '@react-navigation/native-stack' import * as React from 'react' import { useColors } from '@theme/themeHooks' -import HotspotBLENav from '../../services/HotspotService/AddHotspotPage/OnboardingSheet/screens/iot/HotspotBLENav' import SelectDevice from './SelectDevice' const Stack = createNativeStackNavigator() @@ -30,11 +29,6 @@ export default React.memo(function OnboardingNav() { component={SelectDevice} options={screenOptions} /> - ) }) diff --git a/src/services/HotspotService/ClaimTokensPage/index.tsx b/src/services/HotspotService/ClaimTokensPage/index.tsx index 24c53b92..09cdfe1e 100644 --- a/src/services/HotspotService/ClaimTokensPage/index.tsx +++ b/src/services/HotspotService/ClaimTokensPage/index.tsx @@ -202,6 +202,7 @@ const ClaimTokensPage = () => { marginBottom="3xl" loading={claiming} customLoadingColorDisabled="primaryBackground" + backgroundColorDisabled="fg.disabled" disabled={claimingDisabled} /> {claiming && ( diff --git a/src/utils/solanaUtils.ts b/src/utils/solanaUtils.ts index fc6a1e6a..5f62ac59 100644 --- a/src/utils/solanaUtils.ts +++ b/src/utils/solanaUtils.ts @@ -931,7 +931,8 @@ export const getNFTs = async ( page, '', '', - { showFungible: true, showCollectionMetadata: true }, + // TODO: Update helium-program-library to support new options + { showFungible: true, showCollectionMetadata: true } as any, ) return items