increase time & show extra

This commit is contained in:
2026-01-14 22:53:11 +03:00
parent 44e2730428
commit 7b6fe140ad
4 changed files with 33 additions and 18 deletions

View File

@@ -5,6 +5,7 @@ import { Dispatch, SetStateAction } from "react";
import { useTranslation } from "react-i18next";
import { Extra as ExtraType } from "utils/types/appTypes";
import styles from "../product.module.css";
import { formatPriceUi } from "utils/helpers";
export default function Extra({
extrasList,
@@ -49,7 +50,7 @@ export default function Extra({
return {
value: value.id.toString(),
label: value.name,
price: `+${value.price}`,
price: `+${formatPriceUi(value.price, 3)}`,
};
})}
value={selectedExtras.map((ex) => ex.id.toString())}

View File

@@ -94,7 +94,6 @@ export default function ProductFooter({
const extrasInfo = groupInfo?.extras.filter((e) =>
selectedGroupExtrasIds.includes(e.id.toString()),
);
console.log(extrasInfo);
return {
groupid: key,
extrasid: selectedGroupExtrasIds,