From 2022e48e340a4582fe08db2cbb047535cd870285 Mon Sep 17 00:00:00 2001 From: Danny Rorabaugh Date: Fri, 12 Jul 2024 13:17:40 -0400 Subject: [PATCH] Tidy renderOption --- .../GlossWithSuggestions.tsx | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/components/DataEntry/DataEntryTable/EntryCellComponents/GlossWithSuggestions.tsx b/src/components/DataEntry/DataEntryTable/EntryCellComponents/GlossWithSuggestions.tsx index 5ecb961d31..f4db3e58e1 100644 --- a/src/components/DataEntry/DataEntryTable/EntryCellComponents/GlossWithSuggestions.tsx +++ b/src/components/DataEntry/DataEntryTable/EntryCellComponents/GlossWithSuggestions.tsx @@ -78,18 +78,16 @@ export default function GlossWithSuggestions( variant={(props.isNew ? "outlined" : "standard") as any} /> )} - renderOption={(liProps, option, { selected }) => { - return ( - - {SpellChecker.replaceAllButLastWordWithEllipses(option)} - - ); - }} + renderOption={(liProps, option, { selected }) => ( + + {SpellChecker.replaceAllButLastWordWithEllipses(option)} + + )} onKeyPress={(e: KeyboardEvent) => { if (e.key === Key.Enter) { props.handleEnter();