LoyaltyCard: hide "claim" btn
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
import { Button, Card, Col, Image, Row } from "antd";
|
import { Card, Col, Image, Row } from "antd";
|
||||||
import LoyaltyIcon from "components/Icons/cart/LoyaltyIcons";
|
import LoyaltyIcon from "components/Icons/cart/LoyaltyIcons";
|
||||||
import PresentIcon from "components/Icons/cart/PresentIcon";
|
import PresentIcon from "components/Icons/cart/PresentIcon";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { Link, useParams } from "react-router-dom";
|
import { Link, useParams } from "react-router-dom";
|
||||||
import { useGetRestaurantDetailsQuery } from "redux/api/others";
|
import { useGetRestaurantDetailsQuery } from "redux/api/others";
|
||||||
import { ACCESS_TOKEN } from "utils/constants";
|
import { ACCESS_TOKEN } from "utils/constants";
|
||||||
import { colors } from "../../ThemeConstants";
|
import { colors } from "ThemeConstants.ts";
|
||||||
import ProText from "../ProText";
|
import ProText from "../ProText";
|
||||||
import styles from "./LoyaltyCard.module.css";
|
import styles from "./LoyaltyCard.module.css";
|
||||||
|
|
||||||
@@ -19,7 +19,6 @@ const LoyaltyCard = () => {
|
|||||||
(restaurant?.customer_loyalty_points || 0) <=
|
(restaurant?.customer_loyalty_points || 0) <=
|
||||||
0;
|
0;
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.loyaltyContainer}>
|
<div className={styles.loyaltyContainer}>
|
||||||
<Card className={styles.loyaltyCard}>
|
<Card className={styles.loyaltyCard}>
|
||||||
@@ -123,7 +122,7 @@ const LoyaltyCard = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
<Col>
|
{/* <Col>
|
||||||
<Button
|
<Button
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: colors.primary,
|
backgroundColor: colors.primary,
|
||||||
@@ -134,7 +133,7 @@ const LoyaltyCard = () => {
|
|||||||
>
|
>
|
||||||
{t("menu.claim")}
|
{t("menu.claim")}
|
||||||
</Button>
|
</Button>
|
||||||
</Col>
|
</Col> */}
|
||||||
</Row>
|
</Row>
|
||||||
)}
|
)}
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Reference in New Issue
Block a user