-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dApp: Port improvements from the Ledger Demo Testnet branch (#431)
This PR ports improvement from the Ledger Demo Testnet [branch](https://github.com/thesis/acre/tree/testnet-ledger-demo) to the main. What has been changed: - Redirect user to dashboard from modal success window - Redirect to block explorer for transaction from the modal success window - Sort activities by timestamp
- Loading branch information
Showing
10 changed files
with
87 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { selectActionFlowTxHash } from "#/store/action-flow" | ||
import { useAppSelector } from "./useAppSelector" | ||
|
||
export function useActionFlowTxHash() { | ||
return useAppSelector(selectActionFlowTxHash) | ||
} |
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,14 +1,17 @@ | ||
import { createSelector } from "@reduxjs/toolkit" | ||
import { isActivityCompleted } from "#/utils" | ||
import { isActivityCompleted, sortActivitiesByTimestamp } from "#/utils" | ||
import { RootState } from ".." | ||
|
||
export const selectLatestActivities = createSelector( | ||
(state: RootState) => state.wallet.latestActivities, | ||
(latestActivities) => Object.values(latestActivities), | ||
(latestActivities) => | ||
sortActivitiesByTimestamp(Object.values(latestActivities)), | ||
) | ||
|
||
export const selectCompletedActivities = createSelector( | ||
(state: RootState) => state.wallet.activities, | ||
(activities) => | ||
activities.filter((activity) => isActivityCompleted(activity)), | ||
sortActivitiesByTimestamp( | ||
activities.filter((activity) => isActivityCompleted(activity)), | ||
), | ||
) |
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