split bill: fix gray color
This commit is contained in:
@@ -35,7 +35,7 @@ export interface GiftDetailsType {
|
|||||||
|
|
||||||
interface CartState {
|
interface CartState {
|
||||||
items: CartItem[];
|
items: CartItem[];
|
||||||
tmp: unknown;
|
tmp: any;
|
||||||
specialRequest: string;
|
specialRequest: string;
|
||||||
location: LocationData | null;
|
location: LocationData | null;
|
||||||
roomDetails: RoomDetailsType | null;
|
roomDetails: RoomDetailsType | null;
|
||||||
|
|||||||
@@ -4,13 +4,13 @@ import ProText from "components/ProText";
|
|||||||
import { selectCart, selectCartTotal } from "features/order/orderSlice";
|
import { selectCart, selectCartTotal } from "features/order/orderSlice";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { useAppSelector } from "redux/hooks";
|
import { useAppSelector } from "redux/hooks";
|
||||||
|
import { ProGray1 } from "ThemeConstants";
|
||||||
import styles from "../SplitBillPage.module.css";
|
import styles from "../SplitBillPage.module.css";
|
||||||
|
|
||||||
export default function PaymentSummary() {
|
export default function PaymentSummary() {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { tmp } = useAppSelector(selectCart);
|
const { tmp } = useAppSelector(selectCart);
|
||||||
const getTotal = useAppSelector(selectCartTotal);
|
const getTotal = useAppSelector(selectCartTotal);
|
||||||
const { isRTL } = useAppSelector((state) => state.locale);
|
|
||||||
|
|
||||||
const subtotal = getTotal;
|
const subtotal = getTotal;
|
||||||
const tax = subtotal * 0.1; // 10% tax
|
const tax = subtotal * 0.1; // 10% tax
|
||||||
@@ -23,22 +23,16 @@ export default function PaymentSummary() {
|
|||||||
<Card className={`${styles.orderSummary}`}>
|
<Card className={`${styles.orderSummary}`}>
|
||||||
<Space direction="vertical" style={{ width: "100%" }}>
|
<Space direction="vertical" style={{ width: "100%" }}>
|
||||||
<div className={styles.summaryRow}>
|
<div className={styles.summaryRow}>
|
||||||
<ProText style={{ color: "rgba(67, 78, 92, 1)" }}>
|
<ProText style={{ color: ProGray1 }}>
|
||||||
{t("checkout.remainingAmount")}
|
{t("checkout.remainingAmount")}
|
||||||
</ProText>
|
</ProText>
|
||||||
<ArabicPrice
|
<ArabicPrice price={remainingAmount} style={{ color: ProGray1 }} />
|
||||||
price={remainingAmount}
|
|
||||||
style={{ color: "rgba(67, 78, 92, 1)" }}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Divider className={styles.summaryDivider} />
|
<Divider className={styles.summaryDivider} />
|
||||||
<div className={`${styles.summaryRow} ${styles.totalRow}`}>
|
<div className={`${styles.summaryRow} ${styles.totalRow}`}>
|
||||||
<ProText strong>{t("checkout.totalAmount")}</ProText>
|
<ProText strong>{t("checkout.totalAmount")}</ProText>
|
||||||
<ArabicPrice
|
<ArabicPrice price={total} strong />
|
||||||
price={total}
|
|
||||||
strong
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</Space>
|
</Space>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Reference in New Issue
Block a user