add congrats when loyalty prize is available

This commit is contained in:
2025-10-21 16:18:21 +03:00
parent 6a6f92aefc
commit 778233acaa
5 changed files with 123 additions and 28 deletions

View File

@@ -39,15 +39,13 @@ export default function CartMobileTabletLayout({
form,
}: CartMobileTabletLayoutProps) {
const { t } = useTranslation();
const { items, collectionMethod } = useAppSelector(selectCart);
const { items, collectionMethod, orderType } = useAppSelector(selectCart);
const { id } = useParams();
const { isMobile, isTablet } = useBreakPoint();
const getResponsiveClass = () => (isTablet ? "tablet" : "mobile");
const orderType = localStorage.getItem("orderType");
const getMenuItemImageStyle = () => {
if (isMobile) {
return {
@@ -240,7 +238,12 @@ export default function CartMobileTabletLayout({
<Form.Item
name="collectionMethod"
required
rules={[{ required: true, message: t("cart.pleaseSelectCollectionMethod") }]}
rules={[
{
required: true,
message: t("cart.pleaseSelectCollectionMethod"),
},
]}
>
<ProRatioGroups
options={[