Skip to content

Commit f5b921a

Browse files
committed
tests: add tests for image gallery
1 parent 59a0a7c commit f5b921a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

package/src/components/Channel/Channel.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ import {
6969
MessagesContextValue,
7070
MessagesProvider,
7171
} from '../../contexts/messagesContext/MessagesContext';
72-
import {
73-
OverlayContextValue,
74-
useOverlayContext,
75-
} from '../../contexts/overlayContext/OverlayContext';
7672
import {
7773
OwnCapabilitiesContextValue,
7874
OwnCapabilitiesProvider,
@@ -272,7 +268,6 @@ const debounceOptions = {
272268
};
273269

274270
export type ChannelPropsWithContext = Pick<ChannelContextValue, 'channel'> &
275-
Pick<OverlayContextValue, 'overlay' | 'overlayOpacity'> &
276271
Partial<
277272
Pick<AttachmentPickerContextValue, 'bottomInset' | 'topInset' | 'disableAttachmentPicker'>
278273
> &
@@ -2110,7 +2105,6 @@ export type ChannelProps = Partial<Omit<ChannelPropsWithContext, 'channel' | 'th
21102105
export const Channel = (props: PropsWithChildren<ChannelProps>) => {
21112106
const { client, enableOfflineSupport, isOnline, isMessageAIGenerated } = useChatContext();
21122107
const { t } = useTranslationContext();
2113-
const { overlay, overlayOpacity } = useOverlayContext();
21142108

21152109
const threadFromProps = props?.thread;
21162110
const threadInstance = (threadFromProps as ThreadType)?.threadInstance as Thread;
@@ -2142,8 +2136,6 @@ export const Channel = (props: PropsWithChildren<ChannelProps>) => {
21422136
{...{
21432137
isMessageAIGenerated,
21442138
isOnline,
2145-
overlay,
2146-
overlayOpacity,
21472139
setThreadMessages,
21482140
thread,
21492141
threadMessages,

0 commit comments

Comments
 (0)