Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
padms committed Jan 14, 2025
1 parent f4f053e commit 1940836
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/pages/news/index.global.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions web/templates/newsroom/Newsroom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -24,7 +24,7 @@ type NewsRoomTemplateProps = {
locale?: string
pageData?: NewsRoomPageType | undefined
slug?: string
hits?: Hit
hits?: AlgoliaHit[]
}

const NewsRoomTemplate = forwardRef<HTMLElement, NewsRoomTemplateProps>(function NewsRoomTemplate(
Expand Down
4 changes: 2 additions & 2 deletions web/types/algoliaIndexPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -23,7 +23,7 @@ export type AlgoliaIndexPageType = {
intl: IntlData
pageData: MagazineIndexPageType | NewsRoomPageType
slug?: string
hits?: Hit[]
hits?: AlgoliaHit[]
}
}

Expand Down

0 comments on commit 1940836

Please sign in to comment.