This commit is contained in:
eric
2026-06-07 22:50:42 -05:00
parent d27807e504
commit 6d479c9f94
23 changed files with 435 additions and 277 deletions

View File

@@ -7,7 +7,6 @@ import {
redirectToPay,
getDeviceFromEnv,
} from "@/app/digital/lib/payment";
import type { PayEnv } from "@/app/digital/lib/payment";
import { getStoredToken } from "@/app/digital/lib/pocketbase";
import AuthModal from "@/app/digital/components/AuthModal";
@@ -53,7 +52,6 @@ export default function JoinPage() {
const [submitting, setSubmitting] = useState(false);
const [error, setError] = useState<string | null>(null);
const [payRedirecting, setPayRedirecting] = useState(false);
const [payEnv, setPayEnv] = useState<PayEnv | null>(null);
const [authOpen, setAuthOpen] = useState(false);
const checkAuth = useCallback(async () => {
@@ -73,12 +71,6 @@ export default function JoinPage() {
}
}, []);
useEffect(() => {
if (typeof window === "undefined") return;
const env = getPayEnv();
setPayEnv(env);
}, []);
const set = (key: keyof FormData, value: string) =>
setForm((prev) => ({ ...prev, [key]: value }));