fix: payment
This commit is contained in:
parent
08edc8205f
commit
01968cd57e
@ -53,7 +53,7 @@ export default function Payment() {
|
|||||||
const isTablet = useMediaQuery(theme.breakpoints.down(1000));
|
const isTablet = useMediaQuery(theme.breakpoints.down(1000));
|
||||||
|
|
||||||
const [selectedPaymentMethod, setSelectedPaymentMethod] =
|
const [selectedPaymentMethod, setSelectedPaymentMethod] =
|
||||||
useState<PaymentMethodType | null>(null);
|
useState<PaymentMethodType | null>("rspay");
|
||||||
const [warnModalOpen, setWarnModalOpen] = useState<boolean>(false);
|
const [warnModalOpen, setWarnModalOpen] = useState<boolean>(false);
|
||||||
const [sorryModalOpen, setSorryModalOpen] = useState<boolean>(false);
|
const [sorryModalOpen, setSorryModalOpen] = useState<boolean>(false);
|
||||||
const [paymentValueField, setPaymentValueField] = useState<string>("0");
|
const [paymentValueField, setPaymentValueField] = useState<string>("0");
|
||||||
@ -85,6 +85,10 @@ export default function Payment() {
|
|||||||
}, [selectedPaymentMethod]);
|
}, [selectedPaymentMethod]);
|
||||||
|
|
||||||
async function handleChoosePaymentClick() {
|
async function handleChoosePaymentClick() {
|
||||||
|
if (!selectedPaymentMethod) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (Number(paymentValueField) === 0) {
|
if (Number(paymentValueField) === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -175,7 +179,7 @@ export default function Payment() {
|
|||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
<PaymentMethodCard
|
<PaymentMethodCard
|
||||||
isSelected={false}
|
isSelected={true}
|
||||||
label={"Расчётный счёт"}
|
label={"Расчётный счёт"}
|
||||||
image={rsPayLogo}
|
image={rsPayLogo}
|
||||||
onClick={async() => {
|
onClick={async() => {
|
||||||
|
@ -153,9 +153,9 @@ export default function TariffPrivilegeSlider({ privilege }: Props) {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{icon}
|
{icon}
|
||||||
<Typography sx={{ maxWidth: "100px" }} variant="h5">
|
{/* <Typography sx={{ maxWidth: "100px" }} variant="h5">
|
||||||
{privilege.name}
|
{privilege.name}
|
||||||
</Typography>
|
</Typography> */}
|
||||||
</Box>
|
</Box>
|
||||||
{upMd && quantityElement}
|
{upMd && quantityElement}
|
||||||
</Box>
|
</Box>
|
||||||
|
Loading…
Reference in New Issue
Block a user