Skip to content

Commit ee77ed4

Browse files
committed
refactor: move useStreami18n hook to hooks folder
1 parent d4b9f3e commit ee77ed4

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
@@ -28,7 +28,7 @@ import { ImageSelectorIcon as DefaultImageSelectorIcon } from '../../components/
2828
import { ImageGallery } from '../../components/ImageGallery/ImageGallery';
2929
import { MessageOverlay } from '../../components/MessageOverlay/MessageOverlay';
3030
import { BlurView } from '../../native';
31-
import { useStreami18n } from '../../utils/useStreami18n';
31+
import { useStreami18n } from '../../hooks/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)