From 8338bb550a2439ed57b635371b7f64f708b43cd8 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Sat, 19 Feb 2022 00:22:13 +0300 Subject: [PATCH] Use type from API --- src/components/search/SearchResultsRow.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/search/SearchResultsRow.tsx b/src/components/search/SearchResultsRow.tsx index bdbce785a..10bdd1d9a 100644 --- a/src/components/search/SearchResultsRow.tsx +++ b/src/components/search/SearchResultsRow.tsx @@ -1,3 +1,4 @@ +import { BaseItemDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; import React, { FunctionComponent, useEffect, useRef } from 'react'; import cardBuilder from '../cardbuilder/cardBuilder'; @@ -17,7 +18,7 @@ const createScroller = ({ title = '' }) => ({ type SearchResultsRowProps = { title?: string; - items?: Array; // TODO: Should be Array once we have a typed API client + items?: BaseItemDto[]; cardOptions?: Record; }