diff --git a/src/components/ActionsButtons/ActionsButtons.module.css b/src/components/ActionsButtons/ActionsButtons.module.css index bd9be6f..3c278c6 100644 --- a/src/components/ActionsButtons/ActionsButtons.module.css +++ b/src/components/ActionsButtons/ActionsButtons.module.css @@ -1,7 +1,7 @@ .quantityControls { display: flex; align-items: center; - background-color: #ffb70014; + background-color: var(--background); border-radius: 888px; width: fit-content; } @@ -15,7 +15,7 @@ .quantityInputContainer { display: flex; align-items: center; - padding: 8px; + padding: 0 1px; border-radius: 888px; width: 100px; height: 32px; @@ -77,10 +77,15 @@ } .plusIcon { -margin-bottom: 1px; + margin-bottom: 1px; + color: var(--secondary-background); +} + +.minusIcon { + color: var(--secondary-foreground); } .deleteIcon { position: relative; right: 1px; -} \ No newline at end of file +} diff --git a/src/components/ActionsButtons/ActionsButtons.tsx b/src/components/ActionsButtons/ActionsButtons.tsx index 93f7b2e..da28266 100644 --- a/src/components/ActionsButtons/ActionsButtons.tsx +++ b/src/components/ActionsButtons/ActionsButtons.tsx @@ -1,7 +1,6 @@ -import { MinusOutlined } from "@ant-design/icons"; +import { MinusOutlined, PlusOutlined } from "@ant-design/icons"; import { Button, Grid, InputNumber, Popconfirm } from "antd"; import DeleteIcon from "components/Icons/DeleteIcon"; -import PlusIcon from "components/Icons/PlusIcon"; import { useTranslation } from "react-i18next"; import { useAppSelector } from "redux/hooks"; import { colors } from "../../ThemeConstants"; @@ -51,14 +50,19 @@ export default function ActionsButtons({
{quantity > 0 ? ( + style={{ + width: 28, + height: 28, + border: "none", + }} + /> ) : ( + style={{ + backgroundColor: colors.primary, + width: 28, + height: 28, + border: "none", + }} + />
diff --git a/src/components/CartActionsButtons/CartActionsButtons.module.css b/src/components/CartActionsButtons/CartActionsButtons.module.css index f42ba7e..3969878 100644 --- a/src/components/CartActionsButtons/CartActionsButtons.module.css +++ b/src/components/CartActionsButtons/CartActionsButtons.module.css @@ -56,7 +56,6 @@ position: absolute; top: 12px; right: 12px; - background-color: #ffb70014; border-radius: 50%; padding: 8px; cursor: pointer; diff --git a/src/components/CartActionsButtons/CartActionsButtons.tsx b/src/components/CartActionsButtons/CartActionsButtons.tsx index e86fbc1..74392c7 100644 --- a/src/components/CartActionsButtons/CartActionsButtons.tsx +++ b/src/components/CartActionsButtons/CartActionsButtons.tsx @@ -46,7 +46,7 @@ export default function CartActionsButtons({ item }: { item: CartItem }) { {item.quantity > 1 ? ( - - {t("checkout.totalPeople")} - - - - - - -
-
- - - {t("checkout.payFor")} - -
- - -
- - {/* Spinner Visualization - Blank Spin Wheel */} {totalPeople > 0 && (
); })} - {/* Center circle to make it look like a blank wheel */} + {/* Center circle with total bill amount */}
- {payFor} +
+ +
+ + {t("splitBill.totalBill")} +
- - {t("splitBill.yourAmount")}: {splitAmount.toFixed(2)} - )}
-
+ +
+
+ + {t("splitBill.yourShare")} + + +
+
+ +
+