add congrats when loyalty prize is available
This commit is contained in:
@@ -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={[
|
||||
|
||||
Reference in New Issue
Block a user