increase time & show extra
This commit is contained in:
@@ -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())}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user