diff --git a/apps/marginfi-v2-ui/src/pages/_document.tsx b/apps/marginfi-v2-ui/src/pages/_document.tsx
index 446dc4b774..26967e2cc1 100644
--- a/apps/marginfi-v2-ui/src/pages/_document.tsx
+++ b/apps/marginfi-v2-ui/src/pages/_document.tsx
@@ -1,21 +1,19 @@
import { Html, Head, Main, NextScript } from "next/document";
+import Script from "next/script";
export default function Document() {
return (
- {
- // eslint-disable-next-line @next/next/no-sync-scripts
-
- }
+
-
+
);
diff --git a/apps/marginfi-v2-ui/src/pages/swap.tsx b/apps/marginfi-v2-ui/src/pages/swap.tsx
index 30f01cce44..58eec37a3a 100644
--- a/apps/marginfi-v2-ui/src/pages/swap.tsx
+++ b/apps/marginfi-v2-ui/src/pages/swap.tsx
@@ -1,24 +1,30 @@
"use client";
import React from "react";
+
+import Script from "next/script";
+
import config from "~/config";
-import { PageHeader } from "~/components/common/PageHeader";
import { useWalletContext } from "~/hooks/useWalletContext";
+import { PageHeader } from "~/components/common/PageHeader";
+
const SwapPage = () => {
const { walletContextState } = useWalletContext();
- React.useEffect(() => {
- window.Jupiter.init({
- displayMode: "integrated",
- integratedTargetId: "integrated-terminal",
- endpoint: config.rpcEndpoint,
- passThroughWallet: walletContextState.wallet,
- });
- }, [walletContextState.wallet]);
-
return (
<>
+