Make parameters optional for components ported to TSX

This commit is contained in:
MrTimscampi 2021-06-18 16:59:54 +02:00
parent d770581c52
commit 69c4aee2b0
7 changed files with 18 additions and 18 deletions

View file

@ -16,9 +16,9 @@ const createScroller = ({ title = '' }) => ({
});
type SearchResultsRowProps = {
title: string;
items: Array<any>; // TODO: Should be Array<BaseItemDto> once we have a typed API client
cardOptions: Record<string, any>;
title?: string;
items?: Array<any>; // TODO: Should be Array<BaseItemDto> once we have a typed API client
cardOptions?: Record<string, any>;
}
const SearchResultsRow: FunctionComponent<SearchResultsRowProps> = ({ title, items = [], cardOptions = {} }: SearchResultsRowProps) => {