From 86de1f10b90cb1ec03a65078acece17b483a43e2 Mon Sep 17 00:00:00 2001 From: jeremyBeaucousinAkeneo <114410848+jeremyBeaucousinAkeneo@users.noreply.github.com> Date: Fri, 5 May 2023 11:19:17 +0200 Subject: [PATCH] GRF-831 : Change back wording to textArea for rich text (#19676) --- .../front/src/feature/components/templates/AttributeList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Akeneo/Category/front/src/feature/components/templates/AttributeList.tsx b/src/Akeneo/Category/front/src/feature/components/templates/AttributeList.tsx index a034cf75f247..19938e0fb905 100644 --- a/src/Akeneo/Category/front/src/feature/components/templates/AttributeList.tsx +++ b/src/Akeneo/Category/front/src/feature/components/templates/AttributeList.tsx @@ -1,5 +1,5 @@ import {Button, SectionTitle, Table, useBooleanState} from 'akeneo-design-system'; -import {Attribute} from '../../models'; +import {Attribute, CATEGORY_ATTRIBUTE_TYPE_AREA, CATEGORY_ATTRIBUTE_TYPE_RICHTEXT} from '../../models'; import {getLabelFromAttribute} from '../attributes'; import React, {useMemo} from 'react'; import {useFeatureFlags, userContext, useTranslate} from '@akeneo-pim-community/shared'; @@ -66,7 +66,7 @@ export const AttributeList = ({attributes, selectedAttribute, templateId, onAttr > {getLabelFromAttribute(attribute, catalogLocale)} {attribute.code} - {translate(`akeneo.category.template.attribute.type.${attribute.type}`)} + {translate(`akeneo.category.template.attribute.type.${attribute.type !== CATEGORY_ATTRIBUTE_TYPE_RICHTEXT ? attribute.type : CATEGORY_ATTRIBUTE_TYPE_AREA}`)} ))}