Skip to content

Commit

Permalink
chore: rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
zchsh committed Jun 19, 2023
1 parent 51fcf5d commit c31d592
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { generateSuggestedPages } from '../../../helpers'
import { RecentSearches, SuggestedPages } from '../../../components'
// Unified search
import { UnifiedHitsContainer } from '../unified-hits-container'
import { tabsDataFromSearchResults } from '../unified-hits-container/helpers'
import { gatherSearchTabsData } from '../unified-hits-container/helpers'
import {
getAlgoliaFilters,
useCommandBarProductTag,
Expand Down Expand Up @@ -132,7 +132,7 @@ function SearchResults({
* to show a helpful "No Results" message.
*/
const tabsData = useMemo(() => {
return tabsDataFromSearchResults(unifiedSearchResults, currentProductSlug)
return gatherSearchTabsData(unifiedSearchResults, currentProductSlug)
}, [unifiedSearchResults, currentProductSlug])

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function getOtherTabsWithResults(
* Transform unified search results into tab data that the
* `UnifiedHitsContainer` component can render.
*/
export function tabsDataFromSearchResults(
export function gatherSearchTabsData(
unifiedSearchResults: UnifiedSearchResults,
currentProductSlug?: ProductSlug
): UnifiedSearchTabContent[] {
Expand Down

0 comments on commit c31d592

Please sign in to comment.