From 4056d3df9fc9452dab64d3ff247e758e10ecd23a Mon Sep 17 00:00:00 2001 From: canonbrother Date: Thu, 10 Oct 2024 17:14:01 +0800 Subject: [PATCH] lint --- src/components/commons/searchbar/SearchBar.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/components/commons/searchbar/SearchBar.tsx b/src/components/commons/searchbar/SearchBar.tsx index e1b1255e4..e2814681c 100644 --- a/src/components/commons/searchbar/SearchBar.tsx +++ b/src/components/commons/searchbar/SearchBar.tsx @@ -68,11 +68,10 @@ export function SearchBar(props: SearchBarInterface): JSX.Element { const currentReference = refs.reference.current as Element; Object.assign(refs.floating.current?.style, { width: `${currentReference.scrollWidth}px`, - left: - `${ - currentReference.scrollLeft + - (currentReference.scrollWidth - refs.floating.current?.scrollWidth) - }px` ?? "", + left: `${ + currentReference.scrollLeft + + (currentReference.scrollWidth - refs.floating.current?.scrollWidth) + }px`, }); } @@ -113,7 +112,7 @@ export function SearchBar(props: SearchBarInterface): JSX.Element { const onChangeDebounceHandler = useMemo( () => debounce(changeHandler, 200), - [] + [], ); function onSelect(result: SearchResult): void { @@ -137,7 +136,7 @@ export function SearchBar(props: SearchBarInterface): JSX.Element { >
{ const searchResults: SearchResult[] = [];