This commit is contained in:
2026-01-15 11:08:54 +03:00
parent e50d2dfd4c
commit 046773cb8b
3 changed files with 12 additions and 12 deletions

View File

@@ -32,6 +32,7 @@ export default function CheckoutPage() {
coupon, coupon,
customerName, customerName,
tip, tip,
restaurant,
} = useAppSelector(selectCart); } = useAppSelector(selectCart);
const { token } = useAppSelector((state) => state.auth); const { token } = useAppSelector((state) => state.auth);
useEffect(() => { useEffect(() => {
@@ -136,9 +137,13 @@ export default function CheckoutPage() {
{/* {orderType !== OrderType.Redeem && orderType !== OrderType.Gift && ( {/* {orderType !== OrderType.Redeem && orderType !== OrderType.Gift && (
<RewardWaiterCard /> <RewardWaiterCard />
)} */} )} */}
{orderType !== OrderType.Redeem && orderType !== OrderType.Gift && ( {orderType !== OrderType.Redeem &&
orderType !== OrderType.Gift &&
restaurant?.is_loyalty_enabled === 1 &&
(restaurant?.customer_loyalty_points ?? 0) >
(restaurant?.loyalty_stamps ?? 0) ? (
<EarnLoyaltyPointsCard /> <EarnLoyaltyPointsCard />
)} ) : null}
<BriefMenuCard /> <BriefMenuCard />
{/* <Ads1 /> */} {/* <Ads1 /> */}
<OrderSummary /> <OrderSummary />

View File

@@ -1,7 +1,5 @@
import { Divider } from "antd"; import { Divider } from "antd";
import ProText from "components/ProText";
import { Dispatch, SetStateAction } from "react"; import { Dispatch, SetStateAction } from "react";
import { useTranslation } from "react-i18next";
import { TheExtrasGroup } from "utils/types/appTypes"; import { TheExtrasGroup } from "utils/types/appTypes";
@@ -16,7 +14,6 @@ export default function ExtraGroupsContainer({
selectedExtrasByGroup: Record<number, string[]>; selectedExtrasByGroup: Record<number, string[]>;
setSelectedExtrasByGroup: Dispatch<SetStateAction<Record<number, string[]>>>; setSelectedExtrasByGroup: Dispatch<SetStateAction<Record<number, string[]>>>;
}) { }) {
const { t } = useTranslation();
return ( return (
<> <>
@@ -24,7 +21,7 @@ export default function ExtraGroupsContainer({
<div> <div>
<Divider style={{ margin: "0 0 16px 0" }} /> <Divider style={{ margin: "0 0 16px 0" }} />
<div {/* <div
style={{ style={{
display: "flex", display: "flex",
justifyContent: "space-between", justifyContent: "space-between",
@@ -38,7 +35,7 @@ export default function ExtraGroupsContainer({
<ProText strong style={{ fontSize: "0.75rem" }}> <ProText strong style={{ fontSize: "0.75rem" }}>
{t("menu.optional")} {t("menu.optional")}
</ProText> </ProText>
</div> </div> */}
{/* <ProText strong style={{ fontSize: "0.75rem" }}> {/* <ProText strong style={{ fontSize: "0.75rem" }}>
{t("menu.choose1")} {t("menu.choose1")}

View File

@@ -41,9 +41,7 @@ export default function RestaurantPage() {
const param = useParams(); const param = useParams();
const [searchParams] = useSearchParams(); const [searchParams] = useSearchParams();
const { pathname } = useLocation(); const { pathname } = useLocation();
const { orderType } = useAppSelector( const { orderType } = useAppSelector((state) => state.order);
(state) => state.order,
);
const { isRTL } = useAppSelector((state) => state.locale); const { isRTL } = useAppSelector((state) => state.locale);
const { data: restaurant, isLoading } = useGetRestaurantDetailsQuery( const { data: restaurant, isLoading } = useGetRestaurantDetailsQuery(
param.subdomain, param.subdomain,
@@ -119,7 +117,7 @@ export default function RestaurantPage() {
<Link to={`https://www.instagram.com/${restaurant?.instagram}`}> <Link to={`https://www.instagram.com/${restaurant?.instagram}`}>
<InstagramIcon className={styles.socialIcon} /> <InstagramIcon className={styles.socialIcon} />
</Link> </Link>
<Link to="https://x.com/"> {/* <Link to="https://x.com/">
<XIcon className={styles.socialIcon} /> <XIcon className={styles.socialIcon} />
</Link> </Link>
<Link to="https://www.snapchat.com/"> <Link to="https://www.snapchat.com/">
@@ -127,7 +125,7 @@ export default function RestaurantPage() {
</Link> </Link>
<Link to="https://www.jordan.com/"> <Link to="https://www.jordan.com/">
<JIcon className={styles.socialIcon} /> <JIcon className={styles.socialIcon} />
</Link> </Link> */}
</div> </div>
</div> </div>
</div> </div>