feat: spoiler removed
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
|||||||
ProductSchema
|
ProductSchema
|
||||||
} from "../../../../../../client";
|
} from "../../../../../../client";
|
||||||
import styles from './ProductView.module.css';
|
import styles from './ProductView.module.css';
|
||||||
import {ActionIcon, Box, Flex, Image, NumberInput, rem, Spoiler, Text, Title, Tooltip} from '@mantine/core';
|
import {ActionIcon, Box, Flex, Image, NumberInput, rem, Text, Title, Tooltip} from '@mantine/core';
|
||||||
import ProductServicesTable from "../ProductServicesTable/ProductServicesTable.tsx";
|
import ProductServicesTable from "../ProductServicesTable/ProductServicesTable.tsx";
|
||||||
import {isNil, isNumber} from "lodash";
|
import {isNil, isNumber} from "lodash";
|
||||||
import {IconBarcode, IconEdit, IconTrash} from "@tabler/icons-react";
|
import {IconBarcode, IconEdit, IconTrash} from "@tabler/icons-react";
|
||||||
@@ -130,7 +130,7 @@ const ProductView: FC<Props> = ({
|
|||||||
</div>
|
</div>
|
||||||
<div className={styles['attributes-container']}>
|
<div className={styles['attributes-container']}>
|
||||||
<Title order={3}>{product.product.name}</Title>
|
<Title order={3}>{product.product.name}</Title>
|
||||||
<Spoiler maxHeight={0} showLabel={"Показать характеристики"} hideLabel={"Скрыть"}>
|
{/*<Spoiler maxHeight={0} showLabel={"Показать характеристики"} hideLabel={"Скрыть"}>*/}
|
||||||
|
|
||||||
{Object.entries(product.product).map(([key, value]) => {
|
{Object.entries(product.product).map(([key, value]) => {
|
||||||
const fieldName = ProductFieldNames[key as keyof ProductSchema];
|
const fieldName = ProductFieldNames[key as keyof ProductSchema];
|
||||||
@@ -138,7 +138,7 @@ const ProductView: FC<Props> = ({
|
|||||||
return (<Text key={fieldName}>{fieldName}: {value.toString()} </Text>)
|
return (<Text key={fieldName}>{fieldName}: {value.toString()} </Text>)
|
||||||
})}
|
})}
|
||||||
<Text>Штрихкоды: {product.product.barcodes.join(', ')}</Text>
|
<Text>Штрихкоды: {product.product.barcodes.join(', ')}</Text>
|
||||||
</Spoiler>
|
{/*</Spoiler>*/}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<Box/>
|
<Box/>
|
||||||
|
|||||||
Reference in New Issue
Block a user