From c007e547cbd154391a8f401c7b1c3b9a3a9319d7 Mon Sep 17 00:00:00 2001 From: Abigail Alexander Date: Thu, 22 Aug 2024 13:43:56 +0100 Subject: [PATCH] Move label text into component --- src/ui/widgets/Symbol/symbol.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/ui/widgets/Symbol/symbol.tsx b/src/ui/widgets/Symbol/symbol.tsx index 61ef243..5d9b0ee 100644 --- a/src/ui/widgets/Symbol/symbol.tsx +++ b/src/ui/widgets/Symbol/symbol.tsx @@ -93,13 +93,6 @@ export const SymbolComponent = (props: SymbolComponentProps): JSX.Element => { imageFile = imageFile.replace(regex, ` ${intValue.toFixed(0)}.`); } - // Symbol in Phoebus has no label but can display index - const labelText = isBob - ? showIndex - ? index.toString() - : "" - : props.value?.getStringValue(); - let alignItems = "center"; let justifyContent = "center"; switch (props.labelPosition) { @@ -182,7 +175,7 @@ export const SymbolComponent = (props: SymbolComponentProps): JSX.Element => {