перенос кнопок в корзине, тариф с шильдиком
This commit is contained in:
parent
e81a5d50a6
commit
c730993fef
@ -74,9 +74,7 @@ export async function getCustomTariffs(
|
|||||||
|
|
||||||
const tempCustomTariffsResponse = {
|
const tempCustomTariffsResponse = {
|
||||||
...customTariffsResponse,
|
...customTariffsResponse,
|
||||||
squiz: customTariffsResponse.squiz.filter(
|
squiz: customTariffsResponse.squiz
|
||||||
({ name }) => !name.toLocaleLowerCase().includes("шильдик")
|
|
||||||
),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return [tempCustomTariffsResponse]
|
return [tempCustomTariffsResponse]
|
||||||
|
@ -92,7 +92,8 @@ export default function TotalPrice({ priceAfterDiscounts, priceBeforeDiscounts,
|
|||||||
color: theme.palette.gray.dark,
|
color: theme.palette.gray.dark,
|
||||||
width: upMd ? "31.5%" : undefined,
|
width: upMd ? "31.5%" : undefined,
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: upMd ? "center" : "start",
|
||||||
|
flexDirection: upMd ? "row" : "column",
|
||||||
gap: "30px"
|
gap: "30px"
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@ -129,6 +130,7 @@ export default function TotalPrice({ priceAfterDiscounts, priceBeforeDiscounts,
|
|||||||
height: "31px",
|
height: "31px",
|
||||||
padding: "5px 10px",
|
padding: "5px 10px",
|
||||||
right: "0px",
|
right: "0px",
|
||||||
|
top: upMd ? 0 : "17px",
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@ -158,19 +160,21 @@ export default function TotalPrice({ priceAfterDiscounts, priceBeforeDiscounts,
|
|||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
</Badge>
|
</Badge>
|
||||||
{notEnoughMoneyAmount > 0 && (
|
<Box sx={{display: "flex", alignItems: "center",
|
||||||
<Alert severity="error" variant="filled">
|
gap: "30px", flexWrap: "wrap",}}>
|
||||||
Нехватает {currencyFormatter.format(notEnoughMoneyAmount / 100)}
|
{notEnoughMoneyAmount > 0 && (
|
||||||
</Alert>
|
<Alert severity="error" variant="filled">
|
||||||
)}
|
Не хватает {currencyFormatter.format(notEnoughMoneyAmount / 100)}
|
||||||
<Button
|
</Alert>
|
||||||
variant="pena-contained-dark"
|
)}
|
||||||
disabled = {cart.priceAfterDiscounts === 0}
|
<Button
|
||||||
onClick={() => (notEnoughMoneyAmount === 0 ? !loading && handlePayClick() : handleReplenishWallet())}
|
variant="pena-contained-dark"
|
||||||
sx={{ mt: "10px" }}
|
disabled = {cart.priceAfterDiscounts === 0}
|
||||||
>
|
onClick={() => (notEnoughMoneyAmount === 0 ? !loading && handlePayClick() : handleReplenishWallet())}
|
||||||
{loading ? <Loader size={24} /> : notEnoughMoneyAmount === 0 ? "Оплатить" : "Пополнить"}
|
>
|
||||||
</Button>
|
{loading ? <Loader size={24} /> : notEnoughMoneyAmount === 0 ? "Оплатить" : "Пополнить"}
|
||||||
|
</Button>
|
||||||
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user