-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into IOPLT-784
- Loading branch information
Showing
30 changed files
with
438 additions
and
60 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
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
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
40 changes: 38 additions & 2 deletions
40
ts/features/itwallet/presentation/remote/machine/actions.ts
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,2 +1,38 @@ | ||
// This file is a placeholder for future implementation | ||
export const createRemoteActionsImplementation = () => ({}); | ||
import { useIONavigation } from "../../../../../navigation/params/AppParamsList.ts"; | ||
import { ITW_REMOTE_ROUTES } from "../navigation/routes.ts"; | ||
import ROUTES from "../../../../../navigation/routes.ts"; | ||
import { ITW_ROUTES } from "../../../navigation/routes.ts"; | ||
|
||
export const createRemoteActionsImplementation = ( | ||
navigation: ReturnType<typeof useIONavigation> | ||
) => ({ | ||
navigateToFailureScreen: () => { | ||
navigation.navigate(ITW_REMOTE_ROUTES.MAIN, { | ||
screen: ITW_REMOTE_ROUTES.FAILURE | ||
}); | ||
}, | ||
|
||
navigateToDiscoveryScreen: () => { | ||
navigation.navigate(ITW_ROUTES.MAIN, { | ||
screen: ITW_ROUTES.DISCOVERY.INFO | ||
}); | ||
}, | ||
|
||
navigateToWallet: () => { | ||
navigation.reset({ | ||
index: 1, | ||
routes: [ | ||
{ | ||
name: ROUTES.MAIN, | ||
params: { | ||
screen: ROUTES.WALLET_HOME | ||
} | ||
} | ||
] | ||
}); | ||
}, | ||
|
||
closeIssuance: () => { | ||
navigation.popToTop(); | ||
} | ||
}); |
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,12 +1,34 @@ | ||
import { ItwRemoteRequestPayload } from "../Utils/itwRemoteTypeUtils.ts"; | ||
|
||
export type Reset = { | ||
type: "reset"; | ||
}; | ||
|
||
export type Start = { | ||
type: "start"; | ||
payload: ItwRemoteRequestPayload; | ||
}; | ||
|
||
export type GoToWalletActivation = { | ||
type: "go-to-wallet-activation"; | ||
}; | ||
|
||
export type GoToWallet = { | ||
type: "go-to-wallet"; | ||
}; | ||
|
||
export type Back = { | ||
type: "back"; | ||
}; | ||
|
||
export type RemoteEvents = Start | Back; | ||
export type Close = { | ||
type: "close"; | ||
}; | ||
|
||
export type RemoteEvents = | ||
| Reset | ||
| Start | ||
| GoToWalletActivation | ||
| GoToWallet | ||
| Back | ||
| Close; |
Oops, something went wrong.