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