Make parameters optional for components ported to TSX
This commit is contained in:
parent
d770581c52
commit
69c4aee2b0
7 changed files with 18 additions and 18 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue