-
-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: unify mobile and desktop connect popup logic
- Loading branch information
Showing
19 changed files
with
190 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
import { TrezorError } from '@trezor/connect/src/constants/errors'; | ||
import { Deferred } from '@trezor/utils'; | ||
|
||
export type ConnectPopupCall = { | ||
method: string; | ||
processName?: string; | ||
origin?: string; | ||
confirmation: Deferred<void>; | ||
}; | ||
export type ConnectPopupCall = | ||
| { | ||
state: 'request'; | ||
method: string; | ||
methodTitle: string; | ||
confirmLabel: string; | ||
processName?: string; | ||
origin?: string; | ||
confirmation: Deferred<void>; | ||
} | ||
| { | ||
state: 'call-error'; | ||
callError: TrezorError; | ||
} | ||
| { | ||
state: 'deeplink-callback'; | ||
callbackUrl: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { AsyncThunkAction } from '@reduxjs/toolkit'; | ||
|
||
declare module 'redux' { | ||
export interface Dispatch { | ||
<TThunk extends AsyncThunkAction<any, any, any>>(thunk: TThunk): ReturnType<TThunk>; | ||
} | ||
} |
49 changes: 0 additions & 49 deletions
49
suite-native/module-connect-popup/src/hooks/useConnectMethod.ts
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
suite-native/module-connect-popup/src/hooks/useConnectParseParams.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.