diff --git a/packages/connect-examples/expo-example/src/components/ui/Header.tsx b/packages/connect-examples/expo-example/src/components/ui/Header.tsx index bf807fdb5..484691c56 100644 --- a/packages/connect-examples/expo-example/src/components/ui/Header.tsx +++ b/packages/connect-examples/expo-example/src/components/ui/Header.tsx @@ -7,11 +7,7 @@ import { useIntl } from 'react-intl'; import { Routes } from '../../route'; import { Button } from './Button'; import LocaleToggleButton from './LocaleToggleButton'; - -interface MenuItem { - route: string; - labelId: string; -} +import { MenuItem, MenuListItem } from './MenuListItem'; // 菜单项数组 const menuItems: MenuItem[] = [ @@ -53,22 +49,6 @@ const MenuButtons = ({ ); }; -// 菜单列表项组件 -const MenuListItem = ({ item, onPress }: { item: MenuItem; onPress: (route: string) => void }) => { - const intl = useIntl(); - - return ( - onPress(item.route)} - fontWeight="bold" - textAlign="center" - size="$5" - color="black" - /> - ); -}; - const HeaderView = () => { const media = useMedia(); const route = useRoute(); diff --git a/packages/connect-examples/expo-example/src/components/ui/MenuListItem.native.tsx b/packages/connect-examples/expo-example/src/components/ui/MenuListItem.native.tsx new file mode 100644 index 000000000..e58cf2331 --- /dev/null +++ b/packages/connect-examples/expo-example/src/components/ui/MenuListItem.native.tsx @@ -0,0 +1,23 @@ +import { ListItem } from 'tamagui'; + +export interface MenuItem { + route: string; + labelId: string; +} + +export const MenuListItem = ({ + item, + onPress, +}: { + item: MenuItem; + onPress: (route: string) => void; +}) => ( + onPress(item.route)} + fontWeight="bold" + textAlign="center" + size="$5" + color="black" + /> +); diff --git a/packages/connect-examples/expo-example/src/components/ui/MenuListItem.tsx b/packages/connect-examples/expo-example/src/components/ui/MenuListItem.tsx new file mode 100644 index 000000000..910b46018 --- /dev/null +++ b/packages/connect-examples/expo-example/src/components/ui/MenuListItem.tsx @@ -0,0 +1,29 @@ +import { useIntl } from 'react-intl'; +import { ListItem } from 'tamagui'; + +export interface MenuItem { + route: string; + labelId: string; +} + +export const MenuListItem = ({ + item, + onPress, +}: { + item: MenuItem; + onPress: (route: string) => void; +}) => { + const intl = useIntl(); + + return ( + onPress(item.route)} + fontWeight="bold" + textAlign="center" + size="$5" + color="black" + /> + ); +}; diff --git a/packages/connect-examples/expo-example/src/data/bitcoin.ts b/packages/connect-examples/expo-example/src/data/bitcoin.ts index 7089314ab..a8f235100 100644 --- a/packages/connect-examples/expo-example/src/data/bitcoin.ts +++ b/packages/connect-examples/expo-example/src/data/bitcoin.ts @@ -181,6 +181,13 @@ const api: PlaygroundProps[] = [ coin: 'TEST', }, }, + { + title: 'Mock Babylon Staking(Seed3 专用)', + value: { + psbt: '70736274ff0100fd7f0102000000059b7e2b54e4d24e4c003f76c87e08efe7b05a12a1eeccee492a035322ec4e03cf0000000000fdffffffa078bbb428d8e2aa30c8c6e624f95a7d5eac2a989e6955a86c284e1cac1218b80000000000fdffffffbecc3c860dd99b902be9c1dfbc4f2c0e431668880a1216a619a9503f8cffabf20000000000fdffffff5f1787d5d4edce60e926b13ec8e3c2894d757bcb0145ace5539d5fbdcd58c9900200000000fdffffff85f5c8b72fbe754a6435ce117ef4ef66ffd36bc7f80185f5764044d3e9cac4bf0200000000fdffffff03888a0100000000002251206449c9fb89c3c2692205041fe231934a250ff43a8c1f319893e56f6a6bc89fdc0000000000000000496a476262643400f4b1f1ca7515d009aee696ec84ee76e901139c6ad80269ebe7e6b6e8f42ae7b21c61411d36685bb4b293ab968ad430d591a1a88c3d191139cbc30a914b3423c70096751e000000000000225120c3f45119b701bc0384b45e064a4abbea7949c8c492e278f0f594a1fd83f148970a4a03000001012b9174000000000000225120c3f45119b701bc0384b45e064a4abbea7949c8c492e278f0f594a1fd83f148972116f4b1f1ca7515d009aee696ec84ee76e901139c6ad80269ebe7e6b6e8f42ae7b21900fc885a5e5600008001000080000000800000000000000000011720f4b1f1ca7515d009aee696ec84ee76e901139c6ad80269ebe7e6b6e8f42ae7b20001012bd968000000000000225120c3f45119b701bc0384b45e064a4abbea7949c8c492e278f0f594a1fd83f148972116f4b1f1ca7515d009aee696ec84ee76e901139c6ad80269ebe7e6b6e8f42ae7b21900fc885a5e5600008001000080000000800000000000000000011720f4b1f1ca7515d009aee696ec84ee76e901139c6ad80269ebe7e6b6e8f42ae7b20001012bd968000000000000225120c3f45119b701bc0384b45e064a4abbea7949c8c492e278f0f594a1fd83f148972116f4b1f1ca7515d009aee696ec84ee76e901139c6ad80269ebe7e6b6e8f42ae7b21900fc885a5e5600008001000080000000800000000000000000011720f4b1f1ca7515d009aee696ec84ee76e901139c6ad80269ebe7e6b6e8f42ae7b20001012bbe40000000000000225120c3f45119b701bc0384b45e064a4abbea7949c8c492e278f0f594a1fd83f148972116f4b1f1ca7515d009aee696ec84ee76e901139c6ad80269ebe7e6b6e8f42ae7b21900fc885a5e5600008001000080000000800000000000000000011720f4b1f1ca7515d009aee696ec84ee76e901139c6ad80269ebe7e6b6e8f42ae7b20001012bef23000000000000225120c3f45119b701bc0384b45e064a4abbea7949c8c492e278f0f594a1fd83f148972116f4b1f1ca7515d009aee696ec84ee76e901139c6ad80269ebe7e6b6e8f42ae7b21900fc885a5e5600008001000080000000800000000000000000011720f4b1f1ca7515d009aee696ec84ee76e901139c6ad80269ebe7e6b6e8f42ae7b2000000010520f4b1f1ca7515d009aee696ec84ee76e901139c6ad80269ebe7e6b6e8f42ae7b22107f4b1f1ca7515d009aee696ec84ee76e901139c6ad80269ebe7e6b6e8f42ae7b21900fc885a5e560000800100008000000080000000000000000000', + coin: 'TEST', + }, + }, ], }, { diff --git a/packages/connect-examples/expo-example/src/testTools/securityCheckTest/blindSignature/index.tsx b/packages/connect-examples/expo-example/src/testTools/securityCheckTest/blindSignature/index.tsx index 16a011ff8..ae9dd678f 100644 --- a/packages/connect-examples/expo-example/src/testTools/securityCheckTest/blindSignature/index.tsx +++ b/packages/connect-examples/expo-example/src/testTools/securityCheckTest/blindSignature/index.tsx @@ -160,7 +160,7 @@ function ExecuteView() { const res = await sdk[`${method}` as keyof typeof sdk]( connectId, deviceId, - requestParams, + requestParams ); return { payload: res, skipVerify: true }; } catch (error) {