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