diff --git a/web/pages/news/index.global.tsx b/web/pages/news/index.global.tsx index 42518b1a1..21b19d7a4 100644 --- a/web/pages/news/index.global.tsx +++ b/web/pages/news/index.global.tsx @@ -11,7 +11,7 @@ import { defaultLanguage } from '../../languages' import { AlgoliaIndexPageType, NewsRoomPageType } from '../../types' import { getComponentsData } from '../../lib/fetchData' import NewsRoomTemplate from '@templates/newsroom/Newsroom' -import { getServerState, Hits, InstantSearchSSRProvider } from 'react-instantsearch' +import { getServerState, InstantSearchSSRProvider } from 'react-instantsearch' import { Flags } from '../../common/helpers/datasetHelpers' import algoliasearch from 'algoliasearch/lite' import { algolia } from '../../lib/config' diff --git a/web/templates/newsroom/Newsroom.tsx b/web/templates/newsroom/Newsroom.tsx index cb29af0c4..5bda1b5e2 100644 --- a/web/templates/newsroom/Newsroom.tsx +++ b/web/templates/newsroom/Newsroom.tsx @@ -8,7 +8,7 @@ import { ResourceLink } from '@core/Link' import { getIsoFromLocale } from '../../lib/localization' import { Flags } from '../../common/helpers/datasetHelpers' import { createInstantSearchRouterNext } from 'react-instantsearch-router-nextjs' -import { Hit, SearchClient, UiState } from 'instantsearch.js' +import { AlgoliaHit, SearchClient, UiState } from 'instantsearch.js' import Seo from '../../pageComponents/shared/Seo' import { Configure, InstantSearch } from 'react-instantsearch' import { FormattedMessage, useIntl } from 'react-intl' @@ -24,7 +24,7 @@ type NewsRoomTemplateProps = { locale?: string pageData?: NewsRoomPageType | undefined slug?: string - hits?: Hit + hits?: AlgoliaHit[] } const NewsRoomTemplate = forwardRef(function NewsRoomTemplate( diff --git a/web/types/algoliaIndexPage.ts b/web/types/algoliaIndexPage.ts index 17e6e908a..41f7b01b3 100644 --- a/web/types/algoliaIndexPage.ts +++ b/web/types/algoliaIndexPage.ts @@ -13,7 +13,7 @@ import type { } from './index' import { PortableTextBlock } from '@portabletext/types' import { SanityImageObject } from '@sanity/image-url/lib/types/types' -import { Hit } from 'instantsearch.js' +import { AlgoliaHit, Hit } from 'instantsearch.js' export type AlgoliaIndexPageType = { serverState?: InstantSearchServerState @@ -23,7 +23,7 @@ export type AlgoliaIndexPageType = { intl: IntlData pageData: MagazineIndexPageType | NewsRoomPageType slug?: string - hits?: Hit[] + hits?: AlgoliaHit[] } }