diff --git a/src/components/MobileActionBar.tsx b/src/components/MobileActionBar.tsx index a32c16ad..a5e2b242 100644 --- a/src/components/MobileActionBar.tsx +++ b/src/components/MobileActionBar.tsx @@ -1,6 +1,7 @@ "use client"; import { useState, type ReactNode } from "react"; +import { usePlatformDetection } from "../hooks/usePlatformDetection"; type Panel = "trade" | "donate" | "rate" | null; @@ -14,6 +15,7 @@ export function MobileActionBar({ rateContent?: ReactNode; }) { const [open, setOpen] = useState(null); + const { isMiniApp } = usePlatformDetection(); const buttons: { key: Panel; label: string; content?: ReactNode }[] = [ { key: "trade", label: "Trade", content: tradeContent }, @@ -33,7 +35,7 @@ export function MobileActionBar({ {/* Bottom sheet */} {open && ( -
+
{open} @@ -52,7 +54,7 @@ export function MobileActionBar({ )} {/* Fixed bottom bar */} -
+
{buttons.map(({ key, label }) => (