hide tip temprorary
This commit is contained in:
@@ -26,9 +26,7 @@ export default function OrderSummary() {
|
|||||||
const { subdomain } = useParams();
|
const { subdomain } = useParams();
|
||||||
const { data: restaurant } = useGetRestaurantDetailsQuery(subdomain);
|
const { data: restaurant } = useGetRestaurantDetailsQuery(subdomain);
|
||||||
const { orderType, tip } = useAppSelector(selectCart);
|
const { orderType, tip } = useAppSelector(selectCart);
|
||||||
const dispatch = useAppDispatch();
|
|
||||||
const subtotal = useAppSelector(selectCartTotal);
|
const subtotal = useAppSelector(selectCartTotal);
|
||||||
const loyaltyValidation = useAppSelector(selectLoyaltyValidation);
|
|
||||||
const highestLoyaltyItem = useAppSelector(selectHighestPricedLoyaltyItem);
|
const highestLoyaltyItem = useAppSelector(selectHighestPricedLoyaltyItem);
|
||||||
const taxAmount = useAppSelector(selectTaxAmount);
|
const taxAmount = useAppSelector(selectTaxAmount);
|
||||||
const grandTotal = useAppSelector(selectGrandTotal);
|
const grandTotal = useAppSelector(selectGrandTotal);
|
||||||
@@ -125,7 +123,7 @@ export default function OrderSummary() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{orderType !== OrderType.Redeem && (
|
{/* {orderType !== OrderType.Redeem && (
|
||||||
<div className={styles.summaryRow}>
|
<div className={styles.summaryRow}>
|
||||||
<ProText type="secondary" style={titlesStyle}>
|
<ProText type="secondary" style={titlesStyle}>
|
||||||
{t("cart.tip")}
|
{t("cart.tip")}
|
||||||
@@ -135,7 +133,7 @@ export default function OrderSummary() {
|
|||||||
textStyle={{ ...titlesStyle, color: "#434E5C" }}
|
textStyle={{ ...titlesStyle, color: "#434E5C" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)} */}
|
||||||
{orderType === OrderType.Redeem && (
|
{orderType === OrderType.Redeem && (
|
||||||
<div className={styles.summaryRow}>
|
<div className={styles.summaryRow}>
|
||||||
<ProText type="secondary" style={titlesStyle}>
|
<ProText type="secondary" style={titlesStyle}>
|
||||||
|
|||||||
@@ -126,9 +126,9 @@ export default function CheckoutPage() {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Reward Your Waiter */}
|
{/* Reward Your Waiter */}
|
||||||
{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 && (
|
||||||
<EarnLoyaltyPointsCard />
|
<EarnLoyaltyPointsCard />
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user