Skip to content

Commit 6cfe14c

Browse files
authored
fix: Add missing export for the group channel modules (#955)
Add missing export for the GroupChannel and GroupChannelList modules
1 parent 7389c50 commit 6cfe14c

File tree

8 files changed

+14
-12
lines changed

8 files changed

+14
-12
lines changed

src/modules/GroupChannel/components/FrozenNotification/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import React, { useContext } from 'react';
44
import { LocalizationContext } from '../../../../lib/LocalizationContext';
55
import Label, { LabelTypography } from '../../../../ui/Label';
66

7-
interface FrozenNotificationProps {
7+
export interface FrozenNotificationProps {
88
className?: string;
99
}
1010

11-
const FrozenNotification = ({
11+
export const FrozenNotification = ({
1212
className = '',
1313
}: FrozenNotificationProps): React.ReactElement => {
1414
const { stringSet } = useContext(LocalizationContext);

src/modules/GroupChannel/components/GroupChannelUI/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface GroupChannelUIProps {
2525
renderFrozenNotification?: () => React.ReactElement;
2626
}
2727

28-
const GroupChannelUI = (props: GroupChannelUIProps) => {
28+
export const GroupChannelUI = (props: GroupChannelUIProps) => {
2929
const context = useGroupChannelContext();
3030
const {
3131
currentChannel,

src/modules/GroupChannel/components/RemoveMessageModal/RemoveMessageModalView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ export interface RemoveMessageModalProps {
1313
message: EveryMessage;
1414
}
1515

16-
interface RemoveMessageModalViewProps extends RemoveMessageModalProps {
16+
export interface RemoveMessageModalViewProps extends RemoveMessageModalProps {
1717
deleteMessage: (message: SendableMessageType) => Promise<void>;
1818
}
1919

20-
const RemoveMessageModalView = (props: RemoveMessageModalViewProps) => {
20+
export const RemoveMessageModalView = (props: RemoveMessageModalViewProps) => {
2121
const {
2222
onSubmit = () => {
2323
/* noop */

src/modules/GroupChannel/components/RemoveMessageModal/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { useGroupChannelContext } from '../../context/GroupChannelProvider';
33
import RemoveMessageModalView, { RemoveMessageModalProps } from './RemoveMessageModalView';
44

5-
const RemoveMessageModal = (props: RemoveMessageModalProps) => {
5+
export const RemoveMessageModal = (props: RemoveMessageModalProps) => {
66
const { deleteMessage } = useGroupChannelContext();
77
return <RemoveMessageModalView {...props} deleteMessage={deleteMessage} />;
88
};

src/modules/GroupChannel/components/UnreadCount/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface UnreadCountProps {
1515
time?: string;
1616
}
1717

18-
const UnreadCount: React.FC<UnreadCountProps> = ({
18+
export const UnreadCount: React.FC<UnreadCountProps> = ({
1919
className = '',
2020
count = 0,
2121
time = '',

src/modules/GroupChannelList/components/GroupChannelListItem/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { useLocalization } from '../../../../lib/LocalizationContext';
1111
import { useGroupChannelListContext } from '../../context/GroupChannelListProvider';
1212
import { GroupChannelListItemView } from './GroupChannelListItemView';
1313

14-
interface GroupChannelListItemProps extends React.PropsWithChildren {
14+
export interface GroupChannelListItemProps extends React.PropsWithChildren {
1515
channel: GroupChannel;
1616
isSelected?: boolean;
1717
isTyping?: boolean;

src/modules/GroupChannelList/components/GroupChannelListUI/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface GroupChannelListUIProps {
2626
renderPlaceHolderEmptyList?: (props: void) => React.ReactElement;
2727
}
2828

29-
const GroupChannelListUI = (props: GroupChannelListUIProps) => {
29+
export const GroupChannelListUI = (props: GroupChannelListUIProps) => {
3030
const {
3131
renderHeader,
3232
renderChannelPreview,

src/modules/GroupChannelList/components/GroupChannelPreviewAction.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import Icon, { IconTypes, IconColors } from '../../../ui/Icon';
77
import LeaveChannelModal from './LeaveGroupChannel';
88
import { GroupChannel } from '@sendbird/chat/groupChannel';
99

10-
type ChannelPreviewActionProps = {
10+
export interface ChannelPreviewActionProps {
1111
channel?: GroupChannel;
1212
disabled: boolean;
1313
onLeaveChannel(): void;
14-
};
14+
}
1515

16-
export default function GroupChannelPreviewAction({ channel, disabled = false, onLeaveChannel }: ChannelPreviewActionProps) {
16+
export function GroupChannelPreviewAction({ channel, disabled = false, onLeaveChannel }: ChannelPreviewActionProps) {
1717
const parentRef = useRef(null);
1818
const parentContainerRef = useRef(null);
1919
const [showModal, setShowModal] = useState(false);
@@ -64,3 +64,5 @@ export default function GroupChannelPreviewAction({ channel, disabled = false, o
6464
</div>
6565
);
6666
}
67+
68+
export default GroupChannelPreviewAction;

0 commit comments

Comments
 (0)