Skip to content

Commit

Permalink
Fix jest
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Jul 17, 2023
1 parent 32afe1e commit dd9b759
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/next-intl/src/client/useClientLocale.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {useParams} from 'next/navigation';
import {useLocale} from 'use-intl/react';
import {useLocale} from 'use-intl';
import {LOCALE_SEGMENT_NAME} from '../shared/constants';

export default function useClientLocale(): string {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-intl/src/shared/NextIntlClientProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import {useRouter} from 'next/router';
import React, {ComponentProps} from 'react';
import {IntlProvider} from 'use-intl/react';
import {IntlProvider} from 'use-intl';

type Props = Omit<ComponentProps<typeof IntlProvider>, 'locale' | 'now'> & {
locale?: string;
Expand Down

0 comments on commit dd9b759

Please sign in to comment.