Skip to content

Commit b2cae84

Browse files
sravan-sSravan S
andauthored
fix: Export useChannelList (#151)
Type definition expects useChannelList instead of useChannelListContext Co-authored-by: Sravan S <[email protected]>
1 parent e6542c5 commit b2cae84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/smart-components/ChannelList/context/ChannelListProvider.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,12 @@ function useChannelListContext(): ChannelListProviderInterface {
308308
return context;
309309
}
310310

311+
const useChannelList = useChannelListContext;
312+
311313
export {
312314
ChannelListProvider,
313315
// ChannelListContext,
316+
// todo: rename all use{component}Context to use{component}
314317
useChannelListContext,
318+
useChannelList,
315319
};

0 commit comments

Comments
 (0)