Skip to content

Commit 1fd1b69

Browse files
committed
fix: refactor context usage
1 parent ab8f1a2 commit 1fd1b69

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

package/src/components/AttachmentPicker/components/AttachmentPickerSelectionBar.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import React from 'react';
22
import { StyleSheet, TouchableOpacity, View } from 'react-native';
33

4-
import {
5-
useChannelContext,
6-
useMessagesContext,
7-
useOwnCapabilitiesContext,
8-
} from '../../../contexts';
94
import { useAttachmentPickerContext } from '../../../contexts/attachmentPickerContext/AttachmentPickerContext';
5+
import { useChannelContext } from '../../../contexts/channelContext/ChannelContext';
106
import { useMessageInputContext } from '../../../contexts/messageInputContext/MessageInputContext';
7+
import { useMessagesContext } from '../../../contexts/messagesContext/MessagesContext';
8+
import { useOwnCapabilitiesContext } from '../../../contexts/ownCapabilitiesContext/OwnCapabilitiesContext';
119
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
1210

1311
const styles = StyleSheet.create({

package/src/components/Poll/components/CreatePollIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
import { useTheme } from '../../../contexts';
3+
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
44
import { PollThumbnail } from '../../../icons';
55

66
export const CreatePollIcon = () => {

0 commit comments

Comments
 (0)