Procházet zdrojové kódy

fix(insights): remove suspense from props

Alexandru Cambose před 3 měsíci
rodič
revize
80e1edaf83
1 změnil soubory, kde provedl 1 přidání a 4 odebrání
  1. 1 4
      apps/insights/src/components/Root/index.tsx

+ 1 - 4
apps/insights/src/components/Root/index.tsx

@@ -2,7 +2,6 @@ import { AppShell } from "@pythnetwork/component-library/AppShell";
 import { lookup as lookupPublisher } from "@pythnetwork/known-publishers";
 import { NuqsAdapter } from "nuqs/adapters/next/app";
 import type { ReactNode } from "react";
-import { Suspense } from "react";
 
 import {
   ENABLE_ACCESSIBILITY_REPORTING,
@@ -35,9 +34,7 @@ export const Root = ({ children }: Props) => (
     providers={[NuqsAdapter, LivePriceDataProvider]}
     tabs={TABS}
     extraCta={
-      <Suspense fallback={<SearchButtonImpl isLoading />}>
-        <SearchButton />
-      </Suspense>
+      <SearchButton />
     }
   >
     {children}