Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Oct 10, 2024
1 parent bbee436 commit 4056d3d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/components/commons/searchbar/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
});
}

Expand Down Expand Up @@ -113,7 +112,7 @@ export function SearchBar(props: SearchBarInterface): JSX.Element {

const onChangeDebounceHandler = useMemo(
() => debounce(changeHandler, 200),
[]
[],
);

function onSelect(result: SearchResult): void {
Expand All @@ -137,7 +136,7 @@ export function SearchBar(props: SearchBarInterface): JSX.Element {
>
<div
className={classNames(
"flex w-full p-2 rounded-3xl h-10 bg-white dark:bg-gray-800 dark:border-gray-700 border focus-within:border-primary-200"
"flex w-full p-2 rounded-3xl h-10 bg-white dark:bg-gray-800 dark:border-gray-700 border focus-within:border-primary-200",
)}
data-testid="SearchBar"
ref={reference}
Expand Down Expand Up @@ -184,7 +183,7 @@ export function SearchBar(props: SearchBarInterface): JSX.Element {
async function getSearchResults(
api: WhaleApiClient,
network: NetworkName,
query: string
query: string,
): Promise<SearchResult[]> {
const searchResults: SearchResult[] = [];

Expand Down

0 comments on commit 4056d3d

Please sign in to comment.