Skip to content

Commit e940f9a

Browse files
authored
Merge pull request #761 from GetStream/move-usestreami18n-hook
refactor: Move useStreami18n hook to hooks folder
2 parents d4b9f3e + 10e1194 commit e940f9a

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

β€Žpackage/src/components/Chat/Chat.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
TranslationContextValue,
1414
TranslationProvider,
1515
} from '../../contexts/translationContext/TranslationContext';
16-
import { useStreami18n } from '../../utils/useStreami18n';
16+
import { useStreami18n } from '../../hooks/useStreami18n';
1717

1818
import { SDK } from '../../native';
1919
import { version } from '../../version.json';

β€Žpackage/src/contexts/overlayContext/OverlayProvider.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import { ImageOverlaySelectedComponent as DefaultImageOverlaySelectedComponent }
2727
import { ImageSelectorIcon as DefaultImageSelectorIcon } from '../../components/AttachmentPicker/components/ImageSelectorIcon';
2828
import { ImageGallery } from '../../components/ImageGallery/ImageGallery';
2929
import { MessageOverlay } from '../../components/MessageOverlay/MessageOverlay';
30+
import { useStreami18n } from '../../hooks/useStreami18n';
3031
import { BlurView } from '../../native';
31-
import { useStreami18n } from '../../utils/useStreami18n';
3232

3333
import type BottomSheet from '@gorhom/bottom-sheet';
3434

β€Žpackage/src/hooks/index.tsβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from './useAppStateListener';
2+
export * from './useStreami18n';

β€Žpackage/src/utils/useStreami18n.tsβ€Ž renamed to β€Žpackage/src/hooks/useStreami18n.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useEffect, useState } from 'react';
22

33
import type { TranslationContextValue } from '../contexts/translationContext/TranslationContext';
4-
import { Streami18n } from './Streami18n';
4+
import { Streami18n } from '../utils/Streami18n';
55

66
export const useStreami18n = ({
77
i18nInstance,

β€Žpackage/src/index.tsβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export * from './icons';
99
export * from './types/types';
1010

1111
export * from './utils/Streami18n';
12-
export * from './utils/useStreami18n';
1312
export * from './utils/utils';
1413

1514
export { default as enTranslations } from './i18n/en.json';

0 commit comments

Comments
Β (0)