update ref
This commit is contained in:
@@ -13,7 +13,7 @@ import * as z from 'zod'
|
|||||||
|
|
||||||
export default function RegisterForm() {
|
export default function RegisterForm() {
|
||||||
const searchParams = useSearchParams();
|
const searchParams = useSearchParams();
|
||||||
const referralCode = searchParams.get('referralCode');
|
const referralCode = searchParams.get('ref');
|
||||||
|
|
||||||
const [state, formAction, isPending] = useActionState(
|
const [state, formAction, isPending] = useActionState(
|
||||||
registration,
|
registration,
|
||||||
@@ -41,10 +41,6 @@ export default function RegisterForm() {
|
|||||||
|
|
||||||
}, [state])
|
}, [state])
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
console.log(referralCode);
|
|
||||||
}, [referralCode]);
|
|
||||||
|
|
||||||
function showPassowrd(target: 'password' | 'confirm-password') {
|
function showPassowrd(target: 'password' | 'confirm-password') {
|
||||||
if (target === 'password') {
|
if (target === 'password') {
|
||||||
setShowPassword(!showPassword);
|
setShowPassword(!showPassword);
|
||||||
|
|||||||
Reference in New Issue
Block a user