Skip to content

Commit

Permalink
타이핑 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunnini committed Jan 12, 2024
1 parent 607f0cf commit 6750289
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions packages/mobile/src/screen/backup/account-list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ import React, {FunctionComponent, useEffect, useMemo, useState} from 'react';
import {observer} from 'mobx-react-lite';
import {RNMessageRequesterInternal} from '../../../router';
import {BACKGROUND_PORT} from '@keplr-wallet/router';
import {GetLegacyKeyRingInfosMsg} from '@keplr-wallet/background';
import {
KeyStore,
MultiKeyStoreInfoElem,
} from '@keplr-wallet/background/src/keyring/legacy';
GetLegacyKeyRingInfosMsg,
KeyRingLegacy,
} from '@keplr-wallet/background';
import {StyleSheet, Text} from 'react-native';
import {Box} from '../../../components/box';
import {useStyle} from '../../../styles';
Expand All @@ -29,7 +28,7 @@ export const BackupAccountListScreen: FunctionComponent = () => {
const route =
useRoute<RouteProp<RootStackParamList, 'Migration.Backup.AccountList'>>();

const [keyInfos, setKeyInfos] = useState<KeyStore[]>([]);
const [keyInfos, setKeyInfos] = useState<KeyRingLegacy.KeyStore[]>([]);

const googleTorusKeyStores = useMemo(() => {
return keyInfos.filter(
Expand Down Expand Up @@ -188,7 +187,7 @@ export const BackupAccountListScreen: FunctionComponent = () => {

const KeyInfoList: FunctionComponent<{
title: string;
keyInfos: KeyStore[];
keyInfos: KeyRingLegacy.KeyStore[];
}> = observer(({title, keyInfos}) => {
const style = useStyle();

Expand Down Expand Up @@ -219,7 +218,9 @@ const KeyInfoList: FunctionComponent<{
);
});

const getKeyStoreParagraph = (keyStore: MultiKeyStoreInfoElem) => {
const getKeyStoreParagraph = (
keyStore: KeyRingLegacy.MultiKeyStoreInfoElem,
) => {
const bip44HDPath = keyStore.bip44HDPath
? keyStore.bip44HDPath
: {
Expand Down Expand Up @@ -252,7 +253,7 @@ const getKeyStoreParagraph = (keyStore: MultiKeyStoreInfoElem) => {
};

const KeyringItem: FunctionComponent<{
keyInfo: KeyStore;
keyInfo: KeyRingLegacy.KeyStore;
}> = observer(({keyInfo}) => {
const navigate = useNavigation<StackNavProp>();
const route =
Expand Down

0 comments on commit 6750289

Please sign in to comment.