From 1d188c19a19128d03bff7b5bf75f4f25dac9cda5 Mon Sep 17 00:00:00 2001 From: Adam Chambers Date: Thu, 30 Nov 2023 12:59:35 -0500 Subject: [PATCH] chore: prefetch lcp image --- .../src/components/common/PageHeader.tsx | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/apps/marginfi-v2-ui/src/components/common/PageHeader.tsx b/apps/marginfi-v2-ui/src/components/common/PageHeader.tsx index 2a5d977ee4..13c03580a2 100644 --- a/apps/marginfi-v2-ui/src/components/common/PageHeader.tsx +++ b/apps/marginfi-v2-ui/src/components/common/PageHeader.tsx @@ -1,4 +1,5 @@ import { FC, ReactNode } from "react"; +import Head from "next/head"; import { useUiStore } from "~/store"; import { WalletButton } from "./Wallet"; import { Mobile } from "~/mediaQueries"; @@ -12,23 +13,28 @@ const PageHeader: FC = ({ children }) => { const [isFetchingData] = useUiStore((state) => [state.isFetchingData]); return ( -
-
-
+ <> + + + +
+
+
+ +
+ +
+
+
{children}
+
-
- +
+
-
{children}
- -
- -
-
-
+ ); };