Skip to content

Commit

Permalink
Merge branch 'style/next_components' of https://github.com/RabbyHub/r…
Browse files Browse the repository at this point in the history
…abby-mobile into style/next_components
  • Loading branch information
jinming0618 committed Dec 2, 2024
2 parents 2b037d4 + b9968c6 commit a8b5e41
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ export const BottomSheetModalTokenDetail = React.forwardRef<
);

const onRedirecTo = useCallback(
(type?: RedirectToType) => {
async (type?: RedirectToType) => {
onTriggerDismissFromInternal?.({ reason: 'redirect-to', data: type });
const chainItem = !token?.chain
? null
Expand Down Expand Up @@ -796,7 +796,7 @@ export const BottomSheetModalTokenDetail = React.forwardRef<
break;
}
case 'Receive': {
switchSceneCurrentAccount(
await switchSceneCurrentAccount(
'MakeTransactionAbout',
nextTxRedirectAccount || null,
);
Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/src/screens/Home/MultiAddressHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ function MultiAddressHome(): JSX.Element {
modalTitle: 'Select Receive Address',
onDone: async selectedAccount => {
removeGlobalBottomSheetModal2024(selectAddressModalId);
switchSceneCurrentAccount('Receive', selectedAccount);
await switchSceneCurrentAccount('Receive', selectedAccount);
const id = createGlobalBottomSheetModal2024({
name: MODAL_NAMES.SELECT_SORTED_CHAIN,
value: CHAINS_ENUM.ETH,
Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/src/screens/Home/components/HomeTopArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export const HomeTopArea = () => {
title: 'Receive',
Icon: RcIconReceive,
onPress: async () => {
switchSceneCurrentAccount('Receive', currentAccount);
await switchSceneCurrentAccount('Receive', currentAccount);
const id = createGlobalBottomSheetModal2024({
name: MODAL_NAMES.SELECT_SORTED_CHAIN,
value: CHAINS_ENUM.ETH,
Expand Down

0 comments on commit a8b5e41

Please sign in to comment.