瀏覽代碼

fix(insights): remove suspense from props

Alexandru Cambose 3 月之前
父節點
當前提交
80e1edaf83
共有 1 個文件被更改,包括 1 次插入4 次删除
  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}