diff --git a/src/components/catalog/views/page/layout/CatalogLayoutDefaultView.tsx b/src/components/catalog/views/page/layout/CatalogLayoutDefaultView.tsx index 969b536b..262685ae 100644 --- a/src/components/catalog/views/page/layout/CatalogLayoutDefaultView.tsx +++ b/src/components/catalog/views/page/layout/CatalogLayoutDefaultView.tsx @@ -1,5 +1,6 @@ import { FC } from 'react'; -import { Base, Column, Flex, Grid, Text } from '../../../../../common'; +import { ProductTypeEnum } from '../../../../../api'; +import { Column, Flex, Grid, Text } from '../../../../../common'; import { useCatalog } from '../../../../../hooks'; import { CatalogAddOnBadgeWidgetView } from '../widgets/CatalogAddOnBadgeWidgetView'; import { CatalogItemGridWidgetView } from '../widgets/CatalogItemGridWidgetView'; @@ -28,11 +29,15 @@ export const CatalogLayoutDefaultView: FC = props => } { currentOffer && <> - - - - - + + { (currentOffer.product.productType !== ProductTypeEnum.BADGE) && + <> + + + + } + { (currentOffer.product.productType === ProductTypeEnum.BADGE) && } + { currentOffer.localizationName } diff --git a/src/components/catalog/views/page/widgets/CatalogViewProductWidgetView.tsx b/src/components/catalog/views/page/widgets/CatalogViewProductWidgetView.tsx index 620ece15..e89b8ab3 100644 --- a/src/components/catalog/views/page/widgets/CatalogViewProductWidgetView.tsx +++ b/src/components/catalog/views/page/widgets/CatalogViewProductWidgetView.tsx @@ -17,6 +17,8 @@ export const CatalogViewProductWidgetView: FC<{}> = props => if(!product) return; + roomPreviewer.reset(false); + switch(product.productType) { case ProductTypeEnum.FLOOR: { @@ -49,15 +51,12 @@ export const CatalogViewProductWidgetView: FC<{}> = props => switch(product.furnitureData.specialType) { case FurniCategory.FLOOR: - roomPreviewer.reset(false); roomPreviewer.updateObjectRoom(product.extraParam); return; case FurniCategory.WALL_PAPER: - roomPreviewer.reset(false); roomPreviewer.updateObjectRoom(null, product.extraParam); return; case FurniCategory.LANDSCAPE: { - roomPreviewer.reset(false); roomPreviewer.updateObjectRoom(null, null, product.extraParam); const furniData = GetSessionDataManager().getWallItemDataByName('ads_twi_windw');