Skip to content

Commit

Permalink
remove onClose from props in SearchPageResultItem
Browse files Browse the repository at this point in the history
  • Loading branch information
scazan committed Jul 3, 2024
1 parent aacca6e commit 024629b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/components/Search/SearchPageResultItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ export const SearchPageResultItem = React.forwardRef(function SearchPageResultIt
query: string;
item: ComputedPageResult;
active: boolean;
onClick: (to: string) => void;
},
ref: React.Ref<HTMLAnchorElement>,
) {
const { query, item, active, onClick } = props;
const { query, item, active } = props;

return (
<Link
Expand Down
1 change: 0 additions & 1 deletion src/components/Search/SearchResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ export const SearchResults = React.forwardRef(function SearchResults(
query={query}
item={item}
active={index === cursor}
onClick={onClose}
/>
);
}
Expand Down

0 comments on commit 024629b

Please sign in to comment.