Skip to content

Commit dd50d68

Browse files
HoonBaeksravan-s
authored andcommitted
fix: Modify ts interface getLeaveChannel to getLeaveGroupChannel (#345)
1 parent d4c95d1 commit dd50d68

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

SAMPLES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ You can make your own customized channel preview item component in this file. Yo
194194
```javascript
195195
const CustomizedChannelPreviewItem = (props) => {
196196
const { channel } = props;
197-
const onLeaveChannel = sendbirdSelectors.getLeaveChannel(store);
197+
const onLeaveChannel = sendbirdSelectors.getLeaveGroupChannel(store);
198198
...
199199
onLeaveChannel(channel);
200200
}

scripts/index_d_ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ declare module "SendbirdUIKitGlobal" {
195195
getCreateOpenChannel: (store: SendBirdState) => GetCreateOpenChannel;
196196
getGetGroupChannel: (store: SendBirdState) => GetGetGroupChannel;
197197
getGetOpenChannel: (store: SendBirdState) => GetGetOpenChannel;
198-
getLeaveChannel: (store: SendBirdState) => GetLeaveGroupChannel;
198+
getLeaveGroupChannel: (store: SendBirdState) => GetLeaveGroupChannel;
199199
getEnterOpenChannel: (store: SendBirdState) => GetEnterOpenChannel;
200200
getExitOpenChannel: (store: SendBirdState) => GetExitOpenChannel;
201201
getFreezeChannel: (store: SendBirdState) => GetFreezeChannel;

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ interface sendbirdSelectorsInterface {
245245
getCreateOpenChannel: (store: SendBirdState) => GetCreateOpenChannel;
246246
getGetGroupChannel: (store: SendBirdState) => GetGetGroupChannel;
247247
getGetOpenChannel: (store: SendBirdState) => GetGetOpenChannel;
248-
getLeaveChannel: (store: SendBirdState) => GetLeaveGroupChannel;
248+
getLeaveGroupChannel: (store: SendBirdState) => GetLeaveGroupChannel;
249249
getEnterOpenChannel: (store: SendBirdState) => GetEnterOpenChannel;
250250
getExitOpenChannel: (store: SendBirdState) => GetExitOpenChannel;
251251
getFreezeChannel: (store: SendBirdState) => GetFreezeChannel;

src/lib/stories/index.stories.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ const CustomComponent = ({ createChannel, sdk, leaveChannel }) => {
6060
};
6161

6262
const CustomComponentWithSendBird = withSendBird(CustomComponent, (state) => {
63-
const createChannel = sendbirdSelectors.getCreateChannel(state);
64-
const leaveChannel = sendbirdSelectors.getLeaveChannel(state);
63+
const createChannel = sendbirdSelectors.getCreateGroupChannel(state);
64+
const leaveChannel = sendbirdSelectors.getLeaveGroupChannel(state);
6565
const sdk = sendbirdSelectors.getSdk(state);
6666
return ({ createChannel, sdk, leaveChannel });
6767
});

src/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export interface sendbirdSelectorsInterface {
174174
getCreateOpenChannel: (store: SendBirdState) => GetCreateOpenChannel;
175175
getGetGroupChannel: (store: SendBirdState) => GetGetGroupChannel;
176176
getGetOpenChannel: (store: SendBirdState) => GetGetOpenChannel;
177-
getLeaveChannel: (store: SendBirdState) => GetLeaveGroupChannel;
177+
getLeaveGroupChannel: (store: SendBirdState) => GetLeaveGroupChannel;
178178
getEnterOpenChannel: (store: SendBirdState) => GetEnterOpenChannel;
179179
getExitOpenChannel: (store: SendBirdState) => GetExitOpenChannel;
180180
getFreezeChannel: (store: SendBirdState) => GetFreezeChannel;

0 commit comments

Comments
 (0)