about summary refs log tree commit diff
path: root/src/view/com/composer/text-input/web/Autocomplete.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2023-09-08 00:38:57 +0100
committerGitHub <noreply@github.com>2023-09-07 16:38:57 -0700
commita5b89dffa6713bb06c1c572bbdc00517cf5e9bc5 (patch)
treeac8aa2deec7cc24d9a3553bab0c48335d2e8677c /src/view/com/composer/text-input/web/Autocomplete.tsx
parent00595591c46db6ebfa9a8ee404f275b43493f7e0 (diff)
downloadvoidsky-a5b89dffa6713bb06c1c572bbdc00517cf5e9bc5.tar.zst
Add ESLint React plugin (#1412)
* Add eslint-plugin-react

* Enable display name rule
Diffstat (limited to 'src/view/com/composer/text-input/web/Autocomplete.tsx')
-rw-r--r--src/view/com/composer/text-input/web/Autocomplete.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/com/composer/text-input/web/Autocomplete.tsx b/src/view/com/composer/text-input/web/Autocomplete.tsx
index 87820b97b..bbed26d48 100644
--- a/src/view/com/composer/text-input/web/Autocomplete.tsx
+++ b/src/view/com/composer/text-input/web/Autocomplete.tsx
@@ -94,7 +94,7 @@ export function createSuggestion({
 }
 
 const MentionList = forwardRef<MentionListRef, SuggestionProps>(
-  (props: SuggestionProps, ref) => {
+  function MentionListImpl(props: SuggestionProps, ref) {
     const [selectedIndex, setSelectedIndex] = useState(0)
     const pal = usePalette('default')
     const {getGraphemeString} = useGrapheme()