's'
This commit is contained in:
@@ -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 }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user