Replace remote with local repo
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { FormEvent, useEffect, useMemo, useRef, useState } from "react";
|
||||
import { FormEvent, Suspense, useEffect, useMemo, useRef, useState } from "react";
|
||||
import { useSearchParams } from "next/navigation";
|
||||
import { useAccount } from "@/contexts/AccountContext";
|
||||
import { addBarterListing, loadBarter, type BarterLane, type BarterListing } from "@/lib/barterState";
|
||||
@@ -12,7 +12,7 @@ const LANES: { id: BarterLane; label: string; hint: string }[] = [
|
||||
{ id: "open", label: "Open terms", hint: "Wildcard swaps — spell it out." },
|
||||
];
|
||||
|
||||
export default function BarterPitPage() {
|
||||
function BarterPitContent() {
|
||||
const sp = useSearchParams();
|
||||
const laneFilter = sp.get("lane") as BarterLane | null;
|
||||
const { user, hydrated: accountReady } = useAccount();
|
||||
@@ -182,3 +182,11 @@ export default function BarterPitPage() {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default function BarterPitPage() {
|
||||
return (
|
||||
<Suspense fallback={<p className="font-mono text-sm text-[#5a7d62]">Syncing order book…</p>}>
|
||||
<BarterPitContent />
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user