Skip to content

Commit 9c6a586

Browse files
authored
fix: Type definition for channellist and setting (#214)
1 parent 69ab721 commit 9c6a586

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

scripts/index_d_ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@
331331
renderPlaceHolderEmptyList?: (props: void) => React.ReactNode;
332332
}
333333

334-
export interface ChannelListProps extends ChannelListProviderInterface, ChannelListUIProps {}
334+
export interface ChannelListProps extends ChannelListProviderProps, ChannelListUIProps {}
335335

336336
export interface ChannelListHeaderInterface {
337337
renderHeader?: (props: void) => React.ReactNode;
@@ -383,7 +383,7 @@
383383
}
384384

385385
export type ChannelSettingsContextProps = {
386-
children: React.ReactNode;
386+
children?: React.ReactNode;
387387
channelUrl: string;
388388
className?: string;
389389
onCloseClick?(): void;

src/smart-components/ChannelList/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from 'react';
22
import {
33
ChannelListProvider,
4-
ChannelListProviderInterface,
4+
ChannelListProviderProps,
55
} from './context/ChannelListProvider';
66

77
import ChannelListUI, { ChannelListUIProps } from './components/ChannelListUI';
88

9-
interface ChannelListProps extends ChannelListProviderInterface, ChannelListUIProps {}
9+
interface ChannelListProps extends ChannelListProviderProps, ChannelListUIProps {}
1010

1111
const ChannelList: React.FC<ChannelListProps> = (props: ChannelListProps) => {
1212
return (

src/smart-components/ChannelSettings/context/ChannelSettingsProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ interface ChannelSettingsQueries {
2626
}
2727

2828
export type ChannelSettingsContextProps = {
29-
children: React.ReactNode;
29+
children?: React.ReactNode;
3030
channelUrl: string;
3131
className?: string;
3232
onCloseClick?(): void;

0 commit comments

Comments
 (0)