Skip to content

Commit

Permalink
Tidy renderOption
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Jul 12, 2024
1 parent 19fe0e6 commit 2022e48
Showing 1 changed file with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,16 @@ export default function GlossWithSuggestions(
variant={(props.isNew ? "outlined" : "standard") as any}
/>
)}
renderOption={(liProps, option, { selected }) => {
return (
<LiWithFont
{...liProps}
analysis
aria-selected={selected}
lang={props.analysisLang.bcp47}
>
{SpellChecker.replaceAllButLastWordWithEllipses(option)}
</LiWithFont>
);
}}
renderOption={(liProps, option, { selected }) => (
<LiWithFont
{...liProps}
analysis
aria-selected={selected}
lang={props.analysisLang.bcp47}
>
{SpellChecker.replaceAllButLastWordWithEllipses(option)}
</LiWithFont>
)}
onKeyPress={(e: KeyboardEvent) => {
if (e.key === Key.Enter) {
props.handleEnter();
Expand Down

0 comments on commit 2022e48

Please sign in to comment.