Add modal data to data store

This commit is contained in:
Emili Castells Guasch 2025-01-23 12:29:41 +01:00
parent 55a0dd4824
commit e82fdc199e
4 changed files with 69 additions and 25 deletions

View file

@ -119,10 +119,6 @@ export const usePaymentMethods = () => {
multibanco,
pui,
oxxo,
paypalShowLogo,
threeDSecure,
fastlaneCardholderName,
fastlaneDisplayWatermark,
} = useHooks();
const paymentMethods = [
@ -144,10 +140,6 @@ export const usePaymentMethods = () => {
multibanco,
pui,
oxxo,
paypalShowLogo,
threeDSecure,
fastlaneCardholderName,
fastlaneDisplayWatermark,
];
return {
@ -156,6 +148,22 @@ export const usePaymentMethods = () => {
};
};
export const usePaymentMethodsModal = () => {
const {
paypalShowLogo,
threeDSecure,
fastlaneCardholderName,
fastlaneDisplayWatermark,
} = useHooks();
return {
paypalShowLogo,
threeDSecure,
fastlaneCardholderName,
fastlaneDisplayWatermark,
};
};
export const usePaymentMethodsPayPalCheckout = () => {
const { paypal, venmo, payLater, creditCard } = useHooks();
const paymentMethodsPayPalCheckout = [