|
|
|
@ -51,6 +51,7 @@ export const useBuyMatchPopup = () => { |
|
|
|
const [match, setMatch] = useState<Match | null>(null) |
|
|
|
const [match, setMatch] = useState<Match | null>(null) |
|
|
|
const [error, setError] = useState('') |
|
|
|
const [error, setError] = useState('') |
|
|
|
const [loader, setLoader] = useState(false) |
|
|
|
const [loader, setLoader] = useState(false) |
|
|
|
|
|
|
|
const [disabledBuyBtn, setDisabledBuyBtn] = useState(false) |
|
|
|
const { user } = useAuthStore() |
|
|
|
const { user } = useAuthStore() |
|
|
|
|
|
|
|
|
|
|
|
const goTo = useCallback( |
|
|
|
const goTo = useCallback( |
|
|
|
@ -188,6 +189,7 @@ export const useBuyMatchPopup = () => { |
|
|
|
return { |
|
|
|
return { |
|
|
|
close: closePopup, |
|
|
|
close: closePopup, |
|
|
|
currentStep: last(steps), |
|
|
|
currentStep: last(steps), |
|
|
|
|
|
|
|
disabledBuyBtn, |
|
|
|
error, |
|
|
|
error, |
|
|
|
goBack, |
|
|
|
goBack, |
|
|
|
goTo, |
|
|
|
goTo, |
|
|
|
@ -205,6 +207,7 @@ export const useBuyMatchPopup = () => { |
|
|
|
selectedPackage, |
|
|
|
selectedPackage, |
|
|
|
selectedPeriod, |
|
|
|
selectedPeriod, |
|
|
|
selectedSubscription, |
|
|
|
selectedSubscription, |
|
|
|
|
|
|
|
setDisabledBuyBtn, |
|
|
|
subscriptions, |
|
|
|
subscriptions, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|