diff --git a/src/components/CartActionsButtons/CartActionsButtons.module.css b/src/components/CartActionsButtons/CartActionsButtons.module.css
index efe1520..a8ba14b 100644
--- a/src/components/CartActionsButtons/CartActionsButtons.module.css
+++ b/src/components/CartActionsButtons/CartActionsButtons.module.css
@@ -1,12 +1,11 @@
.quantityControls {
display: flex;
align-items: center;
- background-color: #ffb70014;
+ background-color: var(--background);
border-radius: 888px;
width: fit-content;
}
-
.quantityLabel {
font-size: 14px;
color: var(--secondary-color);
@@ -15,8 +14,8 @@
.quantityInputContainer {
display: flex;
+ padding: 0 1px;
align-items: center;
- padding: 8px;
border-radius: 888px;
width: 90px;
height: 32px;
@@ -24,12 +23,14 @@
.quantityButton {
padding: 0;
- width: 25px;
- height: 32px;
+ width: 28px !important;
+ height: 28px !important;
display: flex;
align-items: center;
justify-content: center;
- color: var(--secondary-color);
+ color: var(--secondary-background);
+ background-color: var(--primary);
+ border-radius: 50%;
transition: all 0.2s ease;
}
@@ -78,10 +79,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/CartActionsButtons/CartActionsButtons.tsx b/src/components/CartActionsButtons/CartActionsButtons.tsx
index ee89b79..44c6fd9 100644
--- a/src/components/CartActionsButtons/CartActionsButtons.tsx
+++ b/src/components/CartActionsButtons/CartActionsButtons.tsx
@@ -1,7 +1,6 @@
-import { MinusOutlined } from "@ant-design/icons";
+import { MinusOutlined, PlusOutlined } from "@ant-design/icons";
import { Button, InputNumber, Popconfirm } from "antd";
import DeleteIcon from "components/Icons/DeleteIcon";
-import PlusIcon from "components/Icons/PlusIcon";
import { removeItem, updateQuantity } from "features/order/orderSlice";
import { useTranslation } from "react-i18next";
import { useAppDispatch } from "redux/hooks";
@@ -46,20 +45,31 @@ export default function CartActionsButtons({ item }: { item: CartItem }) {
{item.quantity > 1 ? (
}
size="small"
onClick={() =>
- dispatch(updateQuantity({ id: item.id, uniqueId: item.uniqueId || '', quantity: Math.max(1, item.quantity - 1) }))
+ dispatch(
+ updateQuantity({
+ id: item.id,
+ uniqueId: item.uniqueId || "",
+ quantity: Math.max(1, item.quantity - 1),
+ }),
+ )
}
- className={styles.quantityButton}
- >
-
-
+ className={styles.addButton}
+ style={{
+ width: 28,
+ height: 28,
+ border: "none",
+ }}
+ />
) : (
handleDeleteItem(item.uniqueId || '')}
+ onConfirm={() => handleDeleteItem(item.uniqueId || "")}
okText={t("cart.deleteConfirmation.confirm")}
cancelText={t("cart.deleteConfirmation.cancel")}
okButtonProps={{ danger: true }}
@@ -72,11 +82,26 @@ export default function CartActionsButtons({ item }: { item: CartItem }) {
}}
>
}
size="small"
- danger
- icon={}
- className={styles.removeButton}
+ onClick={() =>
+ dispatch(
+ updateQuantity({
+ id: item.id,
+ uniqueId: item.uniqueId || "",
+ quantity: Math.max(1, item.quantity - 1),
+ }),
+ )
+ }
+ className={styles.addButton}
+ style={{
+ background: "#FEF2F2",
+ width: 28,
+ height: 28,
+ border: "none",
+ }}
/>
)}
@@ -84,22 +109,42 @@ export default function CartActionsButtons({ item }: { item: CartItem }) {
min={1}
max={100}
value={item.quantity || 1}
- onChange={(value) => dispatch(updateQuantity({ id: item.id, uniqueId: item.uniqueId || '', quantity: value || 1 }))}
+ onChange={(value) =>
+ dispatch(
+ updateQuantity({
+ id: item.id,
+ uniqueId: item.uniqueId || "",
+ quantity: value || 1,
+ }),
+ )
+ }
size="small"
controls={false}
className={styles.quantityInput}
name="id"
/>
}
size="small"
onClick={() =>
- dispatch(updateQuantity({ id: item.id, uniqueId: item.uniqueId || '', quantity: Math.min(100, item.quantity + 1) }))
+ dispatch(
+ updateQuantity({
+ id: item.id,
+ uniqueId: item.uniqueId || "",
+ quantity: Math.min(100, item.quantity + 1),
+ }),
+ )
}
- className={styles.quantityButton}
- >
-
-
+ className={styles.addButton}
+ style={{
+ backgroundColor: colors.primary,
+ width: 28,
+ height: 28,
+ border: "none",
+ }}
+ />
diff --git a/src/components/Icons/BackIcon.tsx b/src/components/Icons/BackIcon.tsx
index f2649a3..2c76718 100644
--- a/src/components/Icons/BackIcon.tsx
+++ b/src/components/Icons/BackIcon.tsx
@@ -4,11 +4,12 @@ import { ProGray1 } from "ThemeConstants";
interface BackIconType {
className?: string;
onClick?: () => void;
+ iconColor?: string;
}
-const BackIcon = ({ className, onClick }: BackIconType) => {
+const BackIcon = ({ className, onClick, iconColor }: BackIconType) => {
const { themeName } = useAppSelector((state) => state.theme);
- const color = themeName === "dark" ? "white" : ProGray1;
+ const color = iconColor || (themeName === "dark" ? "white" : ProGray1);
return (