Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1f91b8c
Convert target files to typescript
MajorLift May 15, 2025
7b1bb31
Remove HOC container for `Routes`
MajorLift Jul 31, 2025
f470f09
Fix selectors
MajorLift Jul 31, 2025
d3a96f3
Convert `<Routes />` to functional component
MajorLift Jul 31, 2025
b2ddb91
Fix dispatch callbacks
MajorLift Aug 4, 2025
1c53c97
consolidate feature flag branch for `isLoadingShown` definition
MajorLift Aug 4, 2025
21e68fe
Use `component` prop for `Route` instances
MajorLift Aug 4, 2025
61733a0
Handle undefined case for `openExtensionInBrowser`
MajorLift Aug 4, 2025
5d38733
Add `component` to proptypes of `Route` wrapper components
MajorLift Aug 5, 2025
2b9015b
Restore `exact` props to routes
MajorLift Aug 5, 2025
d6e3bc0
undefined case handling for `getSelectedAccountTokensAcrossChains`
MajorLift Aug 5, 2025
7231ab7
Fix wrong path for `CreateAccountPage`
MajorLift Aug 7, 2025
831c40b
Better comments
MajorLift Aug 7, 2025
6134411
Fix incorrect selector output destructuring
MajorLift Aug 7, 2025
b1a9e0f
Merge branch 'main' into chore/react-router-v6/250515-convert-Routes-…
MajorLift Aug 11, 2025
2dd9d4f
Revert changes to selectors
MajorLift Aug 11, 2025
10aee98
Revert "Revert changes to selectors"
MajorLift Aug 11, 2025
5f2e795
Add effect cleanup for `history.listen` call
MajorLift Aug 11, 2025
c867278
Prevent `openExtensionInBrowser` from triggering on unrelated deps ch…
MajorLift Aug 11, 2025
29b0b66
minimize re-renders by splitting `useEffect` calls by deps
MajorLift Aug 11, 2025
6dbf846
Remove unused variable
MajorLift Aug 11, 2025
2c740d2
Revert change to `getSelectedAccountTokensAcrossChains` behavior and …
MajorLift Aug 11, 2025
2da9b28
Restore destructuring undefined handling
MajorLift Aug 11, 2025
aeeb1c6
Restore early exit to `getSelectedAccountTokensAcrossChains` but retu…
MajorLift Aug 11, 2025
0fbfdd3
Bump `react-router-dom` to v6
MajorLift Aug 12, 2025
096fe44
Replace `Switch` with `Routes`
MajorLift Aug 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
consolidate feature flag branch for isLoadingShown definition
  • Loading branch information
MajorLift committed Aug 7, 2025
commit 1c53c9741aac5c5e83f8f1870805f51dcac1ca64
19 changes: 4 additions & 15 deletions ui/pages/routes/routes.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -665,34 +665,23 @@ export default function Routes() {

const isShowingDeepLinkRoute = location.pathname === DEEP_LINK_ROUTE;

let isLoadingShown =
isLoading &&
completedOnboarding &&
// In the redesigned screens, we hide the general loading spinner and the
// loading states are on a component by component basis.
!isCorrectApprovalType &&
!isCorrectTransactionType &&
// We don't want to show the loading screen on the deep link route, as it
// is already a fullscreen interface.
!isShowingDeepLinkRoute;

///: BEGIN:ONLY_INCLUDE_IF(keyring-snaps)
isLoadingShown =
const isLoadingShown =
isLoading &&
completedOnboarding &&
///: BEGIN:ONLY_INCLUDE_IF(keyring-snaps)
!pendingConfirmations.some(
(confirmation: Confirmation) =>
confirmation.type ===
SNAP_MANAGE_ACCOUNTS_CONFIRMATION_TYPES.showSnapAccountRedirect,
) &&
///: END:ONLY_INCLUDE_IF
// In the redesigned screens, we hide the general loading spinner and the
// loading states are on a component by component basis.
!isCorrectApprovalType &&
!isCorrectTransactionType &&
// We don't want to show the loading spinner on the deep link route, as it
// We don't want to show the loading screen on the deep link route, as it
// is already a fullscreen interface.
!isShowingDeepLinkRoute;
///: END:ONLY_INCLUDE_IF

const accountListMenu = isMultichainAccountsState1Enabled ? (
<MultichainAccountListMenu
Expand Down