Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typo correction to 'screen.enum.ts' #309

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { emptyFn, OnEventFn } from '@rnw-community/shared';
import React, { FC } from 'react';
import { TouchableOpacity } from 'react-native';

import { ScreensEnum } from '../../../../enums/sreens.enum';
import { ScreensEnum } from '../../../../enums/screens.enum';
import { useNavigation } from '../../../../hooks/use-navigation.hook';
import { TestIDProps } from '../../../../interfaces/test-id.props';
import { colors } from '../../../../styles/colors';
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/components/navigation-bar/navigation-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
settingsStackScreens,
swapStackScreens,
walletStackScreens
} from '../../enums/sreens.enum';
} from '../../enums/screens.enum';
import { useShowSwapDisabledToast } from '../../hooks/use-show-swap-disabled-toast';
import { useSwapSupported } from '../../hooks/use-swap-supported.hook';
import { IconNameEnum } from '../icon/icon-name.enum';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { RouteProp, useRoute } from '@react-navigation/native';
import { isDefined, OnEventFn } from '@rnw-community/shared';
import React, { FC } from 'react';

import { ScreensEnum, ScreensParamList } from '../../../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../../../enums/screens.enum';
import { useNavigation } from '../../../../hooks/use-navigation.hook';
import { IconNameEnum } from '../../../icon/icon-name.enum';
import { TouchableIcon } from '../../../touchable-icon/touchable-icon';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { OnEventFn } from '@rnw-community/shared';
import React, { FC } from 'react';
import { View, Pressable } from 'react-native';

import { ScreensParamList } from '../../../../enums/sreens.enum';
import { ScreensParamList } from '../../../../enums/screens.enum';
import { useNavigation } from '../../../../hooks/use-navigation.hook';
import { TestIDProps } from '../../../../interfaces/test-id.props';
import { Row } from '../../../row/row';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useDispatch } from 'react-redux';

import { getDebankId } from '../../../api/debank/utils/get-debank-id.util';
import { DATA_UPDATE_TIME } from '../../../constants/update-time';
import { ScreensEnum } from '../../../enums/sreens.enum';
import { ScreensEnum } from '../../../enums/screens.enum';
import { useCurrentRoute } from '../../../hooks/use-current-route.hook';
import { useTimerEffect } from '../../../hooks/use-timer-effect.hook';
import { getAllUserTokensAction } from '../../../store/wallet/wallet.actions';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ScreensEnum } from '../../../enums/sreens.enum';
import { ScreensEnum } from '../../../enums/screens.enum';
import { useNavigation } from '../../../hooks/use-navigation.hook';

const sensitiveRoutes = [ScreensEnum.RevealPrivateKey, ScreensEnum.RevealSeedPhrase];
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/components/navigator/navigator.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NavigationContainer, NavigationContainerRef, DarkTheme } from '@react-navigation/native';
import React, { FC, createRef } from 'react';

import { ScreensEnum, ScreensParamList } from '../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../enums/screens.enum';
import { useAppLockTimer } from '../../hooks/use-app-lock-timer.hook';
import { useLockApp } from '../../hooks/use-lock-app.hook';
import { usePersistedNavigationState } from '../../hooks/use-persisted-navigation-state.hook';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createStackNavigator } from '@react-navigation/stack';

import { ScreensParamList } from '../../../enums/sreens.enum';
import { ScreensParamList } from '../../../enums/screens.enum';

export const Stack = createStackNavigator<ScreensParamList>();
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createNativeStackNavigator } from '@react-navigation/native-stack';

import { ScreensParamList } from '../../../enums/sreens.enum';
import { ScreensParamList } from '../../../enums/screens.enum';

export const Stack = createNativeStackNavigator<ScreensParamList>();
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { FC } from 'react';
import { TouchableOpacity, View } from 'react-native';

import { ScreensEnum } from '../../../../../enums/sreens.enum';
import { ScreensEnum } from '../../../../../enums/screens.enum';
import { useNavigation } from '../../../../../hooks/use-navigation.hook';
import {
useSelectedAccountPublicKeyHashSelector,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { FC, PropsWithChildren, RefObject } from 'react';
import { ScrollView } from 'react-native';

import { ScreensEnum } from '../../enums/sreens.enum';
import { ScreensEnum } from '../../enums/screens.enum';
import { useNavigation } from '../../hooks/use-navigation.hook';
import {
FooterNavigationButtons,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion libs/ui/src/hooks/use-import-seed-phrase.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { TextInput } from 'react-native-gesture-handler';

import { SECURITY_TIME } from '../constants/defaults';
import { allMnemonicLengthValue, maxWordsLength, SeedWordsAmount, words } from '../constants/seed-words-amount';
import { ScreensEnum } from '../enums/sreens.enum';
import { ScreensEnum } from '../enums/screens.enum';
import { handleSetValueToClipboard } from '../utils/copy-to-clipboard.util';

import { useNavigation } from './use-navigation.hook';
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/hooks/use-lock-app.hook.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect } from 'react';

import { globalNavigationRef } from '../components/navigator/navigator';
import { ScreensEnum } from '../enums/sreens.enum';
import { ScreensEnum } from '../enums/screens.enum';
import { useIsAuthorisedSelector } from '../store/wallet/wallet.selectors';

import { useUnlock } from './use-unlock.hook';
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/hooks/use-navigation.hook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useNavigation as useUntypedNavigation } from '@react-navigation/native';
import type { NativeStackNavigationProp } from '@react-navigation/native-stack';

import { ScreensParamList } from '../enums/sreens.enum';
import { ScreensParamList } from '../enums/screens.enum';

export const useNavigation = () => useUntypedNavigation<NativeStackNavigationProp<ScreensParamList>>();
2 changes: 1 addition & 1 deletion libs/ui/src/hooks/use-persisted-navigation-state.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { parse } from 'query-string';
import { useCallback, useEffect, useMemo, useState } from 'react';
import { isWeb, getStoredValue, setStoredValue } from 'shared';

import { ScreensEnum } from '../enums/sreens.enum';
import { ScreensEnum } from '../enums/screens.enum';
import { Mutable } from '../types/mutable.type';
import { createNavigationRoute } from '../utils/navigation.utils';

Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/hooks/use-previous-screen-name.hook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useNavigationState } from '@react-navigation/native';

import { ScreensEnum } from '../enums/sreens.enum';
import { ScreensEnum } from '../enums/screens.enum';

export const usePreviousScreenName = () => {
const routes = useNavigationState(state => state.routes);
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/hooks/use-redirect-to-full-page.hook.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { isDefined } from '@rnw-community/shared';
import { useEffect } from 'react';

import { ScreensEnum } from '../enums/sreens.enum';
import { ScreensEnum } from '../enums/screens.enum';
import { isPopup } from '../utils/location.utils';
import { openFullViewPage } from '../utils/open-maximise-screen.util';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { FC } from 'react';
import { useDispatch } from 'react-redux';
import { AccountInterface } from 'shared';

import { ScreensEnum } from '../../../enums/sreens.enum';
import { ScreensEnum } from '../../../enums/screens.enum';
import { useNavigation } from '../../../hooks/use-navigation.hook';
import { useCreateHdAccountForNewNetworkType } from '../../../shelter/hooks/use-create-hd-account-for-new-network-type.hook';
import { changeAccountAction } from '../../../store/wallet/wallet.actions';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { AccountType } from '../../../../components/account-type/account-type';
import { CopyText } from '../../../../components/copy-text/copy-text';
import { RobotIcon } from '../../../../components/robot-icon/robot-icon';
import { Selector } from '../../../../components/selector/selector';
import { ScreensEnum } from '../../../../enums/sreens.enum';
import { ScreensEnum } from '../../../../enums/screens.enum';
import { useFiatTotalBalance } from '../../../../hooks/use-fiat-total-balance.hook';
import { useFilteredAccounts } from '../../../../hooks/use-filtered-accounts.hook';
import { useNavigation } from '../../../../hooks/use-navigation.hook';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { FC } from 'react';

import { Dropdown } from '../../../components/dropdown/dropdown';
import { Option } from '../../../components/dropdown/option.interface';
import { ScreensEnum, ScreensParamList } from '../../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../../enums/screens.enum';
import { useNavigation } from '../../../hooks/use-navigation.hook';
import { ModalContainer } from '../../components/modal-container/modal-container';

Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/modals/screens/add-account/add-account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { RouteProp, useRoute } from '@react-navigation/native';
import React, { FC } from 'react';

import { Tabs } from '../../../components/tabs/tabs';
import { ScreensEnum, ScreensParamList } from '../../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../../enums/screens.enum';
import { useNavigation } from '../../../hooks/use-navigation.hook';
import { ModalTabContainer } from '../../components/modal-tab-container/modal-tab-container';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Controller } from 'react-hook-form';

import { Column } from '../../../../../components/column/column';
import { TextInput } from '../../../../../components/text-input/text-input';
import { ScreensEnum } from '../../../../../enums/sreens.enum';
import { ScreensEnum } from '../../../../../enums/screens.enum';
import { useNavigation } from '../../../../../hooks/use-navigation.hook';
import { useCreateHdAccount } from '../../../../../shelter/hooks/use-create-hd-account.hook';
import { ModalFooterButtons } from '../../../../components/modal-footer-buttons/modal-footer-buttons';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Pressable } from '../../../../../components/pressable/pressable';
import { Row } from '../../../../../components/row/row';
import { Text } from '../../../../../components/text/text';
import { TextInput as CustomTextInput } from '../../../../../components/text-input/text-input';
import { ScreensEnum, ScreensParamList } from '../../../../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../../../../enums/screens.enum';
import { useImportSeedPhrase } from '../../../../../hooks/use-import-seed-phrase.hook';
import { useNavigation } from '../../../../../hooks/use-navigation.hook';
import { useCreateImportedAccount } from '../../../../../shelter/hooks/use-create-imported-account.hook';
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/modals/screens/collectible/collectible.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { CopyText } from '../../../components/copy-text/copy-text';
import { Icon } from '../../../components/icon/icon';
import { IconNameEnum } from '../../../components/icon/icon-name.enum';
import { InfoItem } from '../../../components/info-item/info-item';
import { ScreensEnum, ScreensParamList } from '../../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../../enums/screens.enum';
import { useNavigation } from '../../../hooks/use-navigation.hook';
import { useToast } from '../../../hooks/use-toast.hook';
import { loadAccountTokenBalanceAction, deleteCollectibleAction } from '../../../store/wallet/wallet.actions';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { IconNameEnum } from '../../../components/icon/icon-name.enum';
import { Row } from '../../../components/row/row';
import { PasswordInput } from '../../../components/text-input/components/password-input/password-input';
import { requiredFieldError } from '../../../constants/form-errors';
import { ScreensEnum, ScreensParamList } from '../../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../../enums/screens.enum';
import { useConfirmAccess } from '../../../hooks/use-confirm-access.hook';
import { useNavigation } from '../../../hooks/use-navigation.hook';
import { useBiometricEnabledSelector } from '../../../store/settings/settings.selectors';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { IconWithBorder } from '../../../components/icon-with-border/icon-with-b
import { RobotIcon } from '../../../components/robot-icon/robot-icon';
import { Row } from '../../../components/row/row';
import { Text } from '../../../components/text/text';
import { ScreensEnum, ScreensParamList } from '../../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../../enums/screens.enum';
import { useClosePopup } from '../../../hooks/use-close-popup';
import { useNavigation } from '../../../hooks/use-navigation.hook';
import { AllowsRules } from '../../../interfaces/dapp-connection.interface';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { RouteProp, useRoute } from '@react-navigation/native';
import React, { FC } from 'react';

import { InfoBox } from '../../../components/info-box/info-box';
import { ScreensEnum, ScreensParamList } from '../../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../../enums/screens.enum';
import { useClosePopup } from '../../../hooks/use-close-popup';
import { FromAccount } from '../../../screens/send-confirmation/components/confirmation/components/from-account/from-account';
import { SelectedNetwork } from '../../../screens/send-confirmation/components/confirmation/components/selected-network/selected-network';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ethers } from 'ethers';
import React, { FC, useMemo } from 'react';

import { FLOAT_ZERO_STRING } from '../../../constants/defaults';
import { ScreensEnum, ScreensParamList } from '../../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../../enums/screens.enum';
import { useClosePopup } from '../../../hooks/use-close-popup';
import { EvmConfirmation } from '../../../screens/send-confirmation/components/evm-confirmation/evm-confirmation';
import { EMPTY_GAS } from '../../../screens/send-confirmation/constants';
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/modals/screens/delete-d-app/delete-d-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useDispatch } from 'react-redux';
import { Icon } from '../../../components/icon/icon';
import { IconNameEnum } from '../../../components/icon/icon-name.enum';
import { Text } from '../../../components/text/text';
import { ScreensEnum, ScreensParamList } from '../../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../../enums/screens.enum';
import { useNavigation } from '../../../hooks/use-navigation.hook';
import { removeDAppConnectionAction } from '../../../store/d-apps/d-apps.actions';
import { useDAppSelector } from '../../../store/d-apps/d-apps.selectors';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useForm, Controller } from 'react-hook-form';
import { useDispatch } from 'react-redux';

import { TextInput } from '../../../components/text-input/text-input';
import { ScreensEnum, ScreensParamList } from '../../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../../enums/screens.enum';
import { useNavigation } from '../../../hooks/use-navigation.hook';
import { editAccountNameAction } from '../../../store/wallet/wallet.actions';
import { ModalActionsContainer } from '../../components/modal-actions-container/modal-actions-container';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { IconNameEnum } from '../../../components/icon/icon-name.enum';
import { InfoBox } from '../../../components/info-box/info-box';
import { Row } from '../../../components/row/row';
import { Text } from '../../../components/text/text';
import { ScreensEnum, ScreensParamList } from '../../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../../enums/screens.enum';
import { useNavigation } from '../../../hooks/use-navigation.hook';
import { useScrollToOffset } from '../../../hooks/use-scroll-to-element.hook';
import { useTokenFiatBalance } from '../../../hooks/use-token-fiat-balance.hook';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { IconNameEnum } from '../../../components/icon/icon-name.enum';
import { IconWithBorderEnum } from '../../../components/icon-with-border/enums';
import { Row } from '../../../components/row/row';
import { Text } from '../../../components/text/text';
import { ScreensEnum, ScreensParamList } from '../../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../../enums/screens.enum';
import { useClosePopup } from '../../../hooks/use-close-popup';
import { AllowsRules } from '../../../interfaces/dapp-connection.interface';
import { useDAppSelector } from '../../../store/d-apps/d-apps.selectors';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { NetworkTypeEnum } from 'shared';

import { CHAINS_JSON, DEBOUNCE_TIME } from '../../../../constants/defaults';
import { httpsRegx } from '../../../../constants/regex-validation';
import { ScreensEnum } from '../../../../enums/sreens.enum';
import { ScreensEnum } from '../../../../enums/screens.enum';
import { useNavigation } from '../../../../hooks/use-navigation.hook';
import { useToast } from '../../../../hooks/use-toast.hook';
import { NetworkInterface } from '../../../../interfaces/network.interface';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ButtonWithIconSizeEnum } from '../../../../components/button-with-icon/
import { IconNameEnum } from '../../../../components/icon/icon-name.enum';
import { NETWORK_CHAIN_IDS_BY_NETWORK_TYPE } from '../../../../constants/networks';
import { MainnetRpcEnum } from '../../../../constants/rpc';
import { ScreensEnum, ScreensParamList } from '../../../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../../../enums/screens.enum';
import { useNavigation } from '../../../../hooks/use-navigation.hook';
import { NetworkInterface } from '../../../../interfaces/network.interface';
import { useCreateHdAccountForNewNetworkType } from '../../../../shelter/hooks/use-create-hd-account-for-new-network-type.hook';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IconNameEnum } from '../../../../components/icon/icon-name.enum';
import { Selector } from '../../../../components/selector/selector';
import { TouchableIcon } from '../../../../components/touchable-icon/touchable-icon';
import { EMPTY_STRING } from '../../../../constants/defaults';
import { ScreensEnum } from '../../../../enums/sreens.enum';
import { ScreensEnum } from '../../../../enums/screens.enum';
import { useNavigation } from '../../../../hooks/use-navigation.hook';
import { NetworkInterface } from '../../../../interfaces/network.interface';
import { useCreateHdAccountForNewNetworkType } from '../../../../shelter/hooks/use-create-hd-account-for-new-network-type.hook';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Pressable } from '../../../components/pressable/pressable';
import { ProtectLayout } from '../../../components/protect-layout/protect-layout';
import { Text } from '../../../components/text/text';
import { SECURITY_TIME } from '../../../constants/defaults';
import { ScreensEnum, ScreensParamList } from '../../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../../enums/screens.enum';
import { useRevealPrivateKey } from '../../../shelter/hooks/use-reveal-private-key.hook';
import { handleSetValueToClipboard } from '../../../utils/copy-to-clipboard.util';
import { ModalContainer } from '../../components/modal-container/modal-container';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Warning } from '../../../components/announcement/components/warning/war
import { FragmentSelector } from '../../../components/fragment-selector/fragment-selector';
import { Text } from '../../../components/text/text';
import { TextInput } from '../../../components/text-input/text-input';
import { ScreensEnum } from '../../../enums/sreens.enum';
import { ScreensEnum } from '../../../enums/screens.enum';
import { useNavigation } from '../../../hooks/use-navigation.hook';
import { setSlippageToleranceAction } from '../../../store/swap/swap.actions';
import { useSlippageToleranceSelector } from '../../../store/swap/swap.selectors';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useDispatch } from 'react-redux';

import { ONE_INCH_GAS_TOKEN_ADDRESS } from '../../../../api/1inch/constants';
import { get1inchTokenAddress } from '../../../../api/1inch/utils/get-1inch-token-address.util';
import { ScreensEnum, ScreensParamList } from '../../../../enums/sreens.enum';
import { ScreensEnum, ScreensParamList } from '../../../../enums/screens.enum';
import { TokenMetadata } from '../../../../interfaces/token-metadata.interface';
import { addNewTokensMetadataAction } from '../../../../store/wallet/wallet.actions';
import { useSelectedNetworkSelector, useTokensMetadataSelector } from '../../../../store/wallet/wallet.selectors';
Expand Down
Loading