Skip to content

Commit

Permalink
Fix loading on pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy committed Oct 29, 2024
1 parent dd5db7e commit b159ea7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion centrifuge-app/src/components/LayoutBase/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as React from 'react'
import { Outlet } from 'react-router'
import { useIsAboveBreakpoint } from '../../utils/useIsAboveBreakpoint'
import { Footer } from '../Footer'
import { LoadBoundary } from '../LoadBoundary'
import { LogoLink } from '../LogoLink-deprecated'
import { Menu } from '../Menu'
import { BasePadding } from './BasePadding'
Expand Down Expand Up @@ -57,7 +58,9 @@ export function LayoutBase(): JSX.Element {
)}
{/* The ID functions so we can deactive scrolling in certain pages, example in the data page */}
<ContentWrapper id="content-wrapper">
<Outlet />
<LoadBoundary>
<Outlet />
</LoadBoundary>
</ContentWrapper>
</Root>
)
Expand Down
5 changes: 1 addition & 4 deletions centrifuge-app/src/components/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { ExpiringCFGRewardsBanner } from './ExpiringCFGRewardsBanner'
import { GlobalStyle } from './GlobalStyle'
import { Head } from './Head'
import { LayoutBase } from './LayoutBase'
import { LoadBoundary } from './LoadBoundary'
import { OnboardingAuthProvider } from './OnboardingAuthProvider'
import { OnboardingProvider } from './OnboardingProvider'
import { SupportedBrowserBanner } from './SupportedBrowserBanner'
Expand Down Expand Up @@ -200,9 +199,7 @@ export function Root() {
<ExpiringCFGRewardsBanner />
<TransactionProvider>
<TransactionToasts />
<LoadBoundary>
<RouterProvider router={router} />
</LoadBoundary>
<RouterProvider router={router} />
</TransactionProvider>
</DebugFlags>
</OnboardingProvider>
Expand Down

0 comments on commit b159ea7

Please sign in to comment.