Skip to content

Commit

Permalink
fix(wallet-setup): wallet list space
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Apr 16, 2024
1 parent ed285fa commit 53a9b05
Show file tree
Hide file tree
Showing 216 changed files with 621 additions and 613 deletions.
2 changes: 1 addition & 1 deletion apps/wallet-mobile/.storybook/storybook.requires.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/Catalyst/ConfirmVotingTx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {SafeAreaView} from 'react-native-safe-area-context'
import {KeyboardAvoidingView, ProgressStep, Spacer, TextInput} from '../components'
import {ConfirmTx} from '../components/ConfirmTx'
import {debugWalletInfo, features} from '../features'
import {useSelectedWallet} from '../features/WalletManager/Context'
import {useSelectedWallet} from '../features/WalletManager/Context/SelectedWalletContext'
import {Instructions as HWInstructions} from '../HW'
import {errorMessages, txLabels} from '../i18n/global-messages'
import LocalizableError from '../i18n/LocalizableError'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/Catalyst/DownloadCatalyst.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import playstoreBadge from '../assets/img/google-play-badge.png'
import AppDownload from '../assets/img/pic-catalyst-step1.png'
import {Button, ProgressStep, Spacer, StandardModal, Text} from '../components'
import {useStakingInfo} from '../Dashboard/StakePoolInfos'
import {useSelectedWallet} from '../features/WalletManager/Context'
import {useSelectedWallet} from '../features/WalletManager/Context/SelectedWalletContext'
import globalMessages, {confirmationMessages} from '../i18n/global-messages'
import {Logger} from '../legacy/logging'
import {Actions, Row} from './components'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/Catalyst/InsufficientFundsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {useIntl} from 'react-intl'
import {Text, View} from 'react-native'

import {StandardModal} from '../components'
import {useSelectedWallet} from '../features/WalletManager/Context'
import {useSelectedWallet} from '../features/WalletManager/Context/SelectedWalletContext'
import globalMessages, {confirmationMessages} from '../i18n/global-messages'
import {formatTokenWithText} from '../legacy/format'
import {CATALYST} from '../yoroi-wallets/cardano/utils'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/Catalyst/VotingBanner.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {action} from '@storybook/addon-actions'
import {storiesOf} from '@storybook/react-native'
import React from 'react'

import {SelectedWalletProvider} from '../features/WalletManager/Context'
import {SelectedWalletProvider} from '../features/WalletManager/Context/SelectedWalletContext'
import {mocks} from '../yoroi-wallets/mocks'
import {VotingBanner} from './VotingBanner'

Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/Catalyst/VotingBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {defineMessages, useIntl} from 'react-intl'
import {StyleSheet, TouchableOpacity, View} from 'react-native'

import {Icon, Text} from '../components'
import {useSelectedWallet} from '../features/WalletManager/Context'
import {useSelectedWallet} from '../features/WalletManager/Context/SelectedWalletContext'
import globalMessages, {confirmationMessages} from '../i18n/global-messages'
import {isNightly} from '../legacy/config'
import {Logger} from '../legacy/logging'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from 'react'

import {QueryProvider, WithModalProps} from '../../.storybook/decorators'
import {Boundary} from '../components'
import {SelectedWalletProvider} from '../features/WalletManager/Context'
import {SelectedWalletProvider} from '../features/WalletManager/Context/SelectedWalletContext'
import {YoroiWallet} from '../yoroi-wallets/cardano/types'
import {mocks} from '../yoroi-wallets/mocks'
import {ConfirmPin} from './ConfirmPin'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/Dashboard/Dashboard.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {storiesOf} from '@storybook/react-native'
import React from 'react'

import {QueryProvider} from '../../.storybook/decorators'
import {SelectedWalletProvider} from '../features/WalletManager/Context'
import {SelectedWalletProvider} from '../features/WalletManager/Context/SelectedWalletContext'
import {YoroiWallet} from '../yoroi-wallets/cardano/types'
import {mocks} from '../yoroi-wallets/mocks'
import {Dashboard} from './Dashboard'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/Dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
WithdrawWarningModal,
} from '../features/Staking/Governance'
import {useIsGovernanceFeatureEnabled} from '../features/Staking/Governance'
import {useSelectedWallet} from '../features/WalletManager/Context'
import {useSelectedWallet} from '../features/WalletManager/Context/SelectedWalletContext'
import globalMessages from '../i18n/global-messages'
import {Modal} from '../legacy/Modal'
import {useWalletNavigation} from '../navigation'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/Dashboard/DashboardNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {defineMessages, useIntl} from 'react-intl'

import {SettingsButton} from '../components/Button'
import {useGovernanceManagerMaker} from '../features/Staking/Governance'
import {useSelectedWallet} from '../features/WalletManager/Context'
import {useSelectedWallet} from '../features/WalletManager/Context/SelectedWalletContext'
import {DashboardRoutes, defaultStackNavigationOptions, useWalletNavigation} from '../navigation'
import {DelegationConfirmation} from '../Staking'
import {StakingCenter} from '../Staking/StakingCenter'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/Dashboard/StakePoolInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {ActivityIndicator, Linking, StyleSheet, View} from 'react-native'
import {useQuery, UseQueryOptions} from 'react-query'

import {Button, CopyButton, Text, TitledCard} from '../components'
import {useSelectedWallet} from '../features/WalletManager/Context'
import {useSelectedWallet} from '../features/WalletManager/Context/SelectedWalletContext'
import {isEmptyString} from '../utils/utils'
import {YoroiWallet} from '../yoroi-wallets/cardano/types'
import {StakePoolInfoAndHistory} from '../yoroi-wallets/types'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {storiesOf} from '@storybook/react-native'
import React from 'react'
import {QueryClient, QueryClientProvider} from 'react-query'

import {SelectedWalletProvider} from '../features/WalletManager/Context'
import {SelectedWalletProvider} from '../features/WalletManager/Context/SelectedWalletContext'
import {YoroiWallet} from '../yoroi-wallets/cardano/types'
import {mocks} from '../yoroi-wallets/mocks'
import {StakePoolInfos} from './StakePoolInfos'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/Dashboard/StakePoolInfos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from 'react'
import {ActivityIndicator, StyleSheet, View} from 'react-native'
import {useQuery, useQueryClient, UseQueryOptions} from 'react-query'

import {useSelectedWallet} from '../features/WalletManager/Context'
import {useSelectedWallet} from '../features/WalletManager/Context/SelectedWalletContext'
import {YoroiWallet} from '../yoroi-wallets/cardano/types'
import {StakingInfo, YoroiUnsignedTx} from '../yoroi-wallets/types'
import {Quantities} from '../yoroi-wallets/utils'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/Dashboard/UserSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {StyleSheet, View} from 'react-native'

import {Button, Icon, Text, TitledCard} from '../components'
import {usePrivacyMode} from '../features/Settings/PrivacyMode/PrivacyMode'
import {useSelectedWallet} from '../features/WalletManager/Context'
import {useSelectedWallet} from '../features/WalletManager/Context/SelectedWalletContext'
import globalMessages from '../i18n/global-messages'
import {formatAdaWithText} from '../legacy/format'
import {asQuantity} from '../yoroi-wallets/utils'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/NftDetails/NftDetails.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {storiesOf} from '@storybook/react-native'
import React from 'react'

import {QueryProvider, RouteProvider} from '../../.storybook/decorators'
import {SelectedWalletProvider} from '../features/WalletManager/Context'
import {SelectedWalletProvider} from '../features/WalletManager/Context/SelectedWalletContext'
import {mocks, nft} from '../yoroi-wallets/mocks'
import {NftDetails} from './NftDetails'

Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/NftDetails/NftDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {CopyButton, FadeIn, Spacer, Text} from '../components'
import {NftPreview} from '../components/NftPreview'
import {Tab, TabPanel, TabPanels, Tabs} from '../components/Tabs'
import {features} from '../features'
import {useSelectedWallet} from '../features/WalletManager/Context'
import {useSelectedWallet} from '../features/WalletManager/Context/SelectedWalletContext'
import {useMetrics} from '../metrics/metricsManager'
import {NftRoutes} from '../navigation'
import {useModeratedNftImage} from '../Nfts/hooks'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {storiesOf} from '@storybook/react-native'
import React from 'react'

import {QueryProvider, RouteProvider} from '../../.storybook'
import {SelectedWalletProvider} from '../features/WalletManager/Context'
import {SelectedWalletProvider} from '../features/WalletManager/Context/SelectedWalletContext'
import {mocks, nft} from '../yoroi-wallets/mocks'
import {NftDetailsImage} from './NftDetailsImage'

Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/NftDetails/NftDetailsImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ViewTransformer from 'react-native-easy-view-transformer'

import {FadeIn} from '../components'
import {NftPreview} from '../components/NftPreview'
import {useSelectedWallet} from '../features/WalletManager/Context'
import {useSelectedWallet} from '../features/WalletManager/Context/SelectedWalletContext'
import {useMetrics} from '../metrics/metricsManager'
import {NftRoutes, useParams} from '../navigation'
import {isEmptyString} from '../utils/utils'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/Nfts/Nfts.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {storiesOf} from '@storybook/react-native'
import React from 'react'

import {QueryProvider} from '../../.storybook/decorators'
import {SelectedWalletProvider} from '../features/WalletManager/Context'
import {SelectedWalletProvider} from '../features/WalletManager/Context/SelectedWalletContext'
import {SearchProvider} from '../Search/SearchContext'
import {mocks} from '../yoroi-wallets/mocks'
import {Nfts} from './Nfts'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/Nfts/Nfts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {RefreshControl, ScrollView, StyleSheet, Text, View} from 'react-native'
import {SafeAreaView} from 'react-native-safe-area-context'

import {Icon, NftImageGallery, SkeletonGallery, Spacer} from '../components'
import {useSelectedWallet} from '../features/WalletManager/Context'
import {useSelectedWallet} from '../features/WalletManager/Context/SelectedWalletContext'
import {useMetrics} from '../metrics/metricsManager'
import {useSearch, useSearchOnNavBar} from '../Search/SearchContext'
import {useNfts} from '../yoroi-wallets/hooks'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/Nfts/NoNftsScreen.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'
import {Text} from 'react-native'

import {QueryProvider} from '../../.storybook/decorators'
import {SelectedWalletProvider} from '../features/WalletManager/Context'
import {SelectedWalletProvider} from '../features/WalletManager/Context/SelectedWalletContext'
import {SearchProvider} from '../Search/SearchContext'
import {mocks} from '../yoroi-wallets/mocks'
import {NoNftsScreen} from './NoNftsScreen'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'
import {QueryClient, QueryClientProvider} from 'react-query'

import {RouteProvider} from '../../../.storybook/decorators'
import {SelectedWalletProvider} from '../../features/WalletManager/Context'
import {SelectedWalletProvider} from '../../features/WalletManager/Context/SelectedWalletContext'
import {StakingCenterRoutes} from '../../navigation'
import {mocks} from '../../yoroi-wallets/mocks'
import {DelegationConfirmation} from './DelegationConfirmation'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {KeyboardSpacer, Text, ValidatedTextInput} from '../../components'
import {ConfirmTx} from '../../components/ConfirmTx'
import {useStakePoolInfoAndHistory} from '../../Dashboard/StakePoolInfo'
import {debugWalletInfo, features} from '../../features'
import {useSelectedWallet} from '../../features/WalletManager/Context'
import {useSelectedWallet} from '../../features/WalletManager/Context/SelectedWalletContext'
import {Instructions as HWInstructions} from '../../HW'
import globalMessages, {txLabels} from '../../i18n/global-messages'
import {formatTokenAmount, formatTokenWithText} from '../../legacy/format'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {storiesOf} from '@storybook/react-native'
import React from 'react'
import {QueryClient, QueryClientProvider} from 'react-query'

import {SelectedWalletProvider} from '../../features/WalletManager/Context'
import {SelectedWalletProvider} from '../../features/WalletManager/Context/SelectedWalletContext'
import {mocks} from '../../yoroi-wallets/mocks'
import {StakingCenter} from './StakingCenter'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {PleaseWaitModal, Spacer} from '../../components'
import {useStakingTx} from '../../Dashboard/StakePoolInfos'
import {showErrorDialog} from '../../dialogs'
import {features} from '../../features'
import {useSelectedWallet} from '../../features/WalletManager/Context'
import {useSelectedWallet} from '../../features/WalletManager/Context/SelectedWalletContext'
import {useLanguage} from '../../i18n'
import globalMessages, {errorMessages} from '../../i18n/global-messages'
import {isNightly} from '../../legacy/config'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/TxHistory/ActionsBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {useMultipleAddressesInfo} from '../features/Receive/common/useMultipleAd
import {useReceiveAddressesStatus} from '../features/Receive/common/useReceiveAddressesStatus'
import {messages as receiveMessages} from '../features/Receive/common/useStrings'
import {useSwapForm} from '../features/Swap/common/SwapFormProvider'
import {useSelectedWallet} from '../features/WalletManager/Context'
import {useSelectedWallet} from '../features/WalletManager/Context/SelectedWalletContext'
import {actionMessages} from '../i18n/global-messages'
import {useMetrics} from '../metrics/metricsManager'
import {TxHistoryRouteNavigation} from '../navigation'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/TxHistory/AssetList/AssetList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {Alert, Linking, StyleSheet, TouchableOpacity, View} from 'react-native'
import {AmountItem, AmountItemProps} from '../../components/AmountItem/AmountItem'
import {Spacer} from '../../components/Spacer'
import {usePrivacyMode} from '../../features/Settings/PrivacyMode/PrivacyMode'
import {useSelectedWallet} from '../../features/WalletManager/Context'
import {useSelectedWallet} from '../../features/WalletManager/Context/SelectedWalletContext'
import globalMessages, {actionMessages} from '../../i18n/global-messages'
import {useMetrics} from '../../metrics/metricsManager'
import {sortTokenInfos} from '../../utils'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/TxHistory/BalanceBanner.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'
import {View} from 'react-native'

import {QueryProvider} from '../../.storybook/decorators'
import {SelectedWalletProvider} from '../features/WalletManager/Context'
import {SelectedWalletProvider} from '../features/WalletManager/Context/SelectedWalletContext'
import {mocks} from '../yoroi-wallets/mocks'
import {BalanceBanner} from './BalanceBanner'

Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/TxHistory/BalanceBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {Boundary, ResetErrorRef, Spacer} from '../components'
import {Icon} from '../components/Icon'
import {PairedBalance} from '../components/PairedBalance/PairedBalance'
import {usePrivacyMode} from '../features/Settings/PrivacyMode/PrivacyMode'
import {useSelectedWallet} from '../features/WalletManager/Context'
import {useSelectedWallet} from '../features/WalletManager/Context/SelectedWalletContext'
import {formatTokenWithText, formatTokenWithTextWhenHidden} from '../legacy/format'
import {useBalances} from '../yoroi-wallets/hooks'
import {Amounts} from '../yoroi-wallets/utils'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/TxHistory/LockedDeposit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {StyleSheet, View} from 'react-native'

import {Boundary, Spacer, Text} from '../components'
import {usePrivacyMode} from '../features/Settings/PrivacyMode/PrivacyMode'
import {useSelectedWallet} from '../features/WalletManager/Context'
import {useSelectedWallet} from '../features/WalletManager/Context/SelectedWalletContext'
import globalMessages from '../i18n/global-messages'
import {formatTokenWithText, formatTokenWithTextWhenHidden} from '../legacy/format'
import {useLockedAmount} from '../yoroi-wallets/hooks'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {storiesOf} from '@storybook/react-native'
import React from 'react'
import {QueryClient, QueryClientProvider} from 'react-query'

import {SelectedWalletProvider} from '../../features/WalletManager/Context'
import {SelectedWalletProvider} from '../../features/WalletManager/Context/SelectedWalletContext'
import {mocks} from '../../yoroi-wallets/mocks'
import {AssetList} from './AssetList'
import {useSendStyles} from './AssetListSend.style'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/TxHistory/TxDetails/AssetList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {defineMessages, useIntl} from 'react-intl'
import {FlatList, Text, TouchableOpacity, View} from 'react-native'

import {Boundary} from '../../components'
import {useSelectedWallet} from '../../features/WalletManager/Context'
import {useSelectedWallet} from '../../features/WalletManager/Context/SelectedWalletContext'
import globalMessages, {txLabels} from '../../i18n/global-messages'
import {formatTokenAmount} from '../../legacy/format'
import {isEmptyString} from '../../utils'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {AsyncStorageProvider} from '@yoroi/common'
import React from 'react'

import {QueryProvider, RouteProvider} from '../../../.storybook/decorators'
import {SelectedWalletProvider} from '../../features/WalletManager/Context'
import {SelectedWalletProvider} from '../../features/WalletManager/Context/SelectedWalletContext'
import {mocks} from '../../yoroi-wallets/mocks'
import {rootStorage} from '../../yoroi-wallets/storage/rootStorage'
import {TxDetails} from './TxDetails'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/TxHistory/TxDetails/TxDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {ScrollView} from 'react-native-gesture-handler'
import {Banner, Boundary, Button, CopyButton, FadeIn, Icon, Text} from '../../components'
import AddressModal from '../../features/Receive/common/AddressModal/AddressModal'
import {usePrivacyMode} from '../../features/Settings/PrivacyMode/PrivacyMode'
import {useSelectedWallet} from '../../features/WalletManager/Context'
import {useSelectedWallet} from '../../features/WalletManager/Context/SelectedWalletContext'
import globalMessages from '../../i18n/global-messages'
import {formatDateAndTime, formatTokenWithSymbol} from '../../legacy/format'
import {isEmptyString} from '../../utils/utils'
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/TxHistory/TxHistory.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {TransferProvider} from '@yoroi/transfer'
import React from 'react'

import {QueryProvider} from '../../.storybook/decorators'
import {SelectedWalletProvider} from '../features/WalletManager/Context'
import {SelectedWalletProvider} from '../features/WalletManager/Context/SelectedWalletContext'
import {mocks} from '../yoroi-wallets/mocks'
import {TxHistory} from './TxHistory'

Expand Down
Loading

0 comments on commit 53a9b05

Please sign in to comment.