ソースを参照

Merge pull request #2957 from pyth-network/fix/suspense-props

fix(insights): remove suspense from SearchButton
Alexandru Cambose 3 ヶ月 前
コミット
4a1a0e0c65
1 ファイル変更1 行追加6 行削除
  1. 1 6
      apps/insights/src/components/Root/index.tsx

+ 1 - 6
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 {
   AMPLITUDE_API_KEY,
@@ -35,11 +34,7 @@ export const Root = ({ children }: Props) => (
     enableAccessibilityReporting={ENABLE_ACCESSIBILITY_REPORTING}
     providers={[NuqsAdapter, LivePriceDataProvider]}
     tabs={TABS}
-    extraCta={
-      <Suspense fallback={<SearchButtonImpl isLoading />}>
-        <SearchButton />
-      </Suspense>
-    }
+    extraCta={<SearchButton />}
   >
     {children}
   </AppShell>