feat: a few shipping products in box

This commit is contained in:
2025-03-01 17:05:27 +04:00
parent d37dce7980
commit 17e6c5f23a
20 changed files with 405 additions and 356 deletions

View File

@@ -3,18 +3,14 @@ import { CardSchema } from "../../../client";
const DATETIME_TYPES = ["datetime", "date"];
const getAttributesFromCard = (card: CardSchema) => {
console.log("getAttributesFromCard");
return card.attributes.reduce(
(values, cardAttribute) => {
let value: boolean | number | string | null | Date = cardAttribute.value;
console.log(cardAttribute.attribute.type.type);
if (DATETIME_TYPES.includes(cardAttribute.attribute.type.type) && value !== null) {
value = new Date(value as string);
}
console.log("cardAttrValue", value);
console.log("value type", typeof value);
return {
...values,
[cardAttribute.attribute.name]: value,

View File

@@ -13,7 +13,7 @@ const InlineButton = ({ children, onClick, ...props }: Props) => {
onClick={onClick}
{...props}
>
<Group gap="sm">
<Group gap="sm" wrap={"nowrap"}>
{children}
</Group>
</Button>