Skip to content

Commit

Permalink
GRF-831 : Change back wording to textArea for rich text (#19676)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyBeaucousinAkeneo committed May 5, 2023
1 parent 1939a66 commit 86de1f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -66,7 +66,7 @@ export const AttributeList = ({attributes, selectedAttribute, templateId, onAttr
>
<Table.Cell rowTitle>{getLabelFromAttribute(attribute, catalogLocale)}</Table.Cell>
<Table.Cell>{attribute.code}</Table.Cell>
<Table.Cell>{translate(`akeneo.category.template.attribute.type.${attribute.type}`)}</Table.Cell>
<Table.Cell>{translate(`akeneo.category.template.attribute.type.${attribute.type !== CATEGORY_ATTRIBUTE_TYPE_RICHTEXT ? attribute.type : CATEGORY_ATTRIBUTE_TYPE_AREA}`)}</Table.Cell>
</Table.Row>
))}
</Table.Body>
Expand Down

0 comments on commit 86de1f1

Please sign in to comment.