Skip to content

Commit

Permalink
Fixed import types of I18nLocale
Browse files Browse the repository at this point in the history
  • Loading branch information
silversonicaxel committed Sep 16, 2024
1 parent 1590839 commit fdcd400
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/app/[locale]/bookshops/[bookshopId]/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useCallback } from 'react'
import { useTranslationClient } from 'helpers/hooks/useTranslationClient'
import { ErrorContent } from 'src/components/error-content'
import { ComponentErrorParams } from 'types/component'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


type BookshopErrorProps = ComponentErrorParams
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/bookshops/[bookshopId]/loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useParams } from 'next/navigation'

import { useTranslationClient } from 'helpers/hooks/useTranslationClient'
import { Loading } from 'src/components/loading'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


export default function BookshopsLoading() {
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/bookshops/[bookshopId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { isImageSecure } from 'helpers/utils/isImageSecure'
import { getBookshop } from 'src/api/bookshop'
import { SafeImage } from 'src/components/safe-image'
import type { ComponentParams } from 'types/component'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


type BookshopPageProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/bookshops/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { locales_codes } from 'helpers/config/i18n'
import { meta, META_SITE_BASE_URL } from 'helpers/config/meta'
import { getTranslationServer } from 'helpers/utils/getTranslationServer'
import type { ComponentParams } from 'types/component'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


type BookshopsLayoutProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/bookshops/loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useParams } from 'next/navigation'

import { useTranslationClient } from 'helpers/hooks/useTranslationClient'
import { Loading } from 'src/components/loading'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


export default function BookshopsLoading() {
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useCallback } from 'react'
import { ErrorContent } from 'src/components/error-content'
import { useTranslationClient } from 'helpers/hooks/useTranslationClient'
import { ComponentErrorParams } from 'types/component'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


type HomeErrorProps = ComponentErrorParams
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { DialogProvider } from 'helpers/providers/dialog'
import { getTranslationServer } from 'helpers/utils/getTranslationServer'
import { isEnvironmentProduction } from 'helpers/utils/isEnvironment'
import type { ComponentParams } from 'types/component'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


type HomeLayoutProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/error-content/error-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { FC } from 'react'

import { useTranslationClient } from 'helpers/hooks/useTranslationClient'
import { ComponentErrorParams } from 'types/component'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


type ErrorContentProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import styles from './header.module.css'

import { Menu } from 'src/components/menu'
import { useTranslationClient } from 'helpers/hooks/useTranslationClient'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


export const Header: FC = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/hero-image/hero-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { FC } from 'react'
import styles from './hero-image.module.css'

import { useTranslationClient } from 'helpers/hooks/useTranslationClient'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


export const HeroImage: FC = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/loading/loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { memo } from 'react'
import type { FC } from 'react'

import { useTranslationClient } from 'helpers/hooks/useTranslationClient'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


type LoadingProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/menu/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import styles from './menu.module.css'
import { locales } from 'helpers/config/i18n'
import { useLocalesCurrentUrl } from 'helpers/hooks/useLocalesCurrentUrl'
import { useTranslationClient } from 'helpers/hooks/useTranslationClient'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


export const Menu: FC = memo(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useParams } from 'next/navigation'

import { useTranslationClient } from 'helpers/hooks/useTranslationClient'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


export const NotFoundContentClient = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/pagination/pagination-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { FC } from 'react'
import styles from './pagination-item.module.css'

import { useTranslationClient } from 'helpers/hooks/useTranslationClient'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


type PaginationItemProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/search-area/search-area-summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import styles from './search-area-summary.module.css'

import { useTranslationClient } from 'helpers/hooks/useTranslationClient'
import { isObjectNull } from 'helpers/utils/isObjectNull'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'
import { SearchBookshopsFormInput, SearchBookshopsFormInputOptions } from 'types/search'


Expand Down
2 changes: 1 addition & 1 deletion src/components/search-area/search-area.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { isObjectNull } from 'helpers/utils/isObjectNull'
import { DialogLazy } from 'src/components/dialog'
import { useDialog } from 'src/components/dialog/hooks/useDialog'
import { CountryCode } from 'types/country'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'
import { SearchBookshopsFormInput } from 'types/search'


Expand Down
2 changes: 1 addition & 1 deletion src/helpers/config/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


export const defaultLocale = 'en'
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/hooks/useLocalesCurrentUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { usePathname, useSearchParams } from 'next/navigation'

import { locales } from '../config/i18n'

import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


export type UseLocalesCurrentUrlParams = {
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/hooks/useTranslationClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useCookies } from 'react-cookie'
import { initReactI18next, useTranslation } from 'react-i18next'

import { getOptions, locales, I18N_COOKIE_NAME } from 'helpers/config/i18n'
import { I18nLocale } from 'types/i18n'
import type { I18nLocale } from 'types/i18n'


export type UseTranslationClientParams = {
Expand Down

0 comments on commit fdcd400

Please sign in to comment.