Implement displayed text

This commit is contained in:
Eric NGUYEN 2022-09-16 15:00:40 +02:00
parent ce65d448c9
commit 9f24d2d40a
4 changed files with 6 additions and 2 deletions

View file

@ -32,7 +32,7 @@ export function Sidebar(props: ISidebarProps): JSX.Element {
draggable={true}
onDragStart={(event) => HandleDragStart(event)}
>
{TruncateString(componentOption.Type, 25)}
{TruncateString(componentOption.DisplayedText ?? componentOption.Type, 25)}
</button>);
if (componentOption.Category === null || componentOption.Category === undefined) {
rootElements.push(componentButton);