fixed authcontext for sign up, added 404 and middleware for prod readiness
This commit is contained in:
@@ -403,9 +403,17 @@ export default function GunbuilderPage() {
|
||||
Platform
|
||||
<select
|
||||
value={platform}
|
||||
onChange={(e) =>
|
||||
setPlatform(e.target.value as (typeof PLATFORMS)[number])
|
||||
}
|
||||
onChange={(e) => {
|
||||
const next = e.target.value as (typeof PLATFORMS)[number];
|
||||
setPlatform(next);
|
||||
|
||||
// Keep URL in sync so navigation + refresh preserve platform
|
||||
const qp = new URLSearchParams(searchParams.toString());
|
||||
qp.set("platform", next);
|
||||
qp.delete("select");
|
||||
|
||||
router.replace(`/builder?${qp.toString()}`, { scroll: false });
|
||||
}}
|
||||
className="rounded-md border border-zinc-700 bg-zinc-900 px-2 py-1 text-xs text-zinc-100 focus:outline-none focus:ring-1 focus:ring-amber-400"
|
||||
>
|
||||
{PLATFORMS.map((p) => (
|
||||
|
||||
Reference in New Issue
Block a user