diff --git a/scripts/index_d_ts b/scripts/index_d_ts index 7671b2bde..c59d6e162 100644 --- a/scripts/index_d_ts +++ b/scripts/index_d_ts @@ -327,7 +327,7 @@ renderPlaceHolderEmptyList?: (props: void) => React.ReactNode; } - export interface ChannelListProps extends ChannelListProviderInterface, ChannelListUIProps {} + export interface ChannelListProps extends ChannelListProviderProps, ChannelListUIProps {} export interface ChannelListHeaderInterface { renderHeader?: (props: void) => React.ReactNode; @@ -379,7 +379,7 @@ } export type ChannelSettingsContextProps = { - children: React.ReactNode; + children?: React.ReactNode; channelUrl: string; className?: string; onCloseClick?(): void; diff --git a/src/smart-components/ChannelList/index.tsx b/src/smart-components/ChannelList/index.tsx index ce6f9f826..6e99cb6d3 100644 --- a/src/smart-components/ChannelList/index.tsx +++ b/src/smart-components/ChannelList/index.tsx @@ -1,12 +1,12 @@ import React from 'react'; import { ChannelListProvider, - ChannelListProviderInterface, + ChannelListProviderProps, } from './context/ChannelListProvider'; import ChannelListUI, { ChannelListUIProps } from './components/ChannelListUI'; -interface ChannelListProps extends ChannelListProviderInterface, ChannelListUIProps {} +interface ChannelListProps extends ChannelListProviderProps, ChannelListUIProps {} const ChannelList: React.FC = (props: ChannelListProps) => { return ( diff --git a/src/smart-components/ChannelSettings/context/ChannelSettingsProvider.tsx b/src/smart-components/ChannelSettings/context/ChannelSettingsProvider.tsx index 8c953559a..0ce5ea48d 100644 --- a/src/smart-components/ChannelSettings/context/ChannelSettingsProvider.tsx +++ b/src/smart-components/ChannelSettings/context/ChannelSettingsProvider.tsx @@ -26,7 +26,7 @@ interface ChannelSettingsQueries { } export type ChannelSettingsContextProps = { - children: React.ReactNode; + children?: React.ReactNode; channelUrl: string; className?: string; onCloseClick?(): void;