e.stopPropagation()}
+ onClick={e => e.stopPropagation()}
+ style={{
+ position: "absolute",
+ top: offset,
+ left: "50%",
+ transform: `
+ translateX(-80%)
+ translateY(${visible ? 0 : '-5px'})
+ `,
+ background: "#0f0f0f",
+ color: textColor,
+ padding: "4px",
+ borderRadius: "8px",
+ fontSize: "0.875rem",
+ fontWeight: "500",
+ whiteSpace: "nowrap",
+ pointerEvents: "auto",
+ zIndex: 9998,
+ border: `1px solid ${borderColor}`,
+ boxShadow: `0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px ${borderColor}20`,
+ textAlign: "center",
+ fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
+ letterSpacing: "0.025em",
+ backdropFilter: "blur(8px)",
+ width: "180px",
+ minWidth: undefined,
+ opacity: visible ? 1 : 0,
+ transition: `
+ opacity ${ANIMATION_DURATION}ms cubic-bezier(0.4, 0, 0.2, 1),
+ transform ${ANIMATION_DURATION}ms cubic-bezier(0.34, 1.56, 0.64, 1)
+ `,
+ willChange: "transform, opacity"
+ }}
+ >
+
+ {message}
+
+
+
+
+
+
+ )
+}
+
+export default WarningPopup
diff --git a/src/components/content.tsx b/src/components/content.tsx
index d1c3eca1..a119a7ac 100644
--- a/src/components/content.tsx
+++ b/src/components/content.tsx
@@ -4,9 +4,9 @@ import { apolloClient } from '~src/lib/apolo-client'
import React, { type ReactNode, useEffect } from "react"
import {
Route,
- BrowserRouter as Router,
Routes,
- Navigate
+ Navigate,
+ useNavigate
} from "react-router-dom"
import { configureClient } from "@warzieram/graphql"
@@ -39,9 +39,7 @@ import ProfileLayout from "./profile/ProfileLayout"
import "../styles/global.css"
import umamiScriptUrl from "url:../../assets/umami.js"
-import TagsPage from "~src/pages/TagsPage"
-
-const API_URL = "https://prod.base-sepolia.intuition.sh/v1/graphql"
+const API_URL = "https://prod.base.intuition-api.com/v1/graphql"
configureClient({ apiUrl: API_URL })
const queryClient = new QueryClient()
@@ -65,22 +63,32 @@ const Content = ({ children }: ContentProps) => {
}, [])
const { navType } = useNavigation()
+ const navigate = useNavigate();
+
+ useEffect(() => {
+ const port = chrome.runtime.connect({ name: "sidepanel-nav" });
+ port.postMessage("SIDEPANEL_READY");
+ port.onMessage.addListener((msg) => {
+ if (msg.action === "NAVIGATE_SIDEPANEL" && msg.route) {
+ console.log("[SIDEPANEL] NAVIGATE_SIDEPANEL received via port, navigating to:", msg.route);
+ navigate(msg.route);
+ }
+ });
+ return () => port.disconnect();
+ }, [navigate]);
- console.log(queryClient);
-
return (