diff --git a/components/Chromecast.tsx b/components/Chromecast.tsx index 69608057..bf92148b 100644 --- a/components/Chromecast.tsx +++ b/components/Chromecast.tsx @@ -10,11 +10,11 @@ import { import GoogleCast from "react-native-google-cast"; type Props = { - item?: BaseItemDto | null; - startTimeTicks?: number | null; + width?: number; + height?: number; }; -export const Chromecast: React.FC = () => { +export const Chromecast: React.FC = ({ width = 48, height = 48 }) => { const client = useRemoteMediaClient(); const castDevice = useCastDevice(); const devices = useDevices(); @@ -32,8 +32,8 @@ export const Chromecast: React.FC = () => { }, [client, devices, castDevice, sessionManager, discoveryManager]); return ( - - + + ); }; diff --git a/components/DownloadItem.tsx b/components/DownloadItem.tsx index ec9ac92e..51b01e2d 100644 --- a/components/DownloadItem.tsx +++ b/components/DownloadItem.tsx @@ -65,7 +65,7 @@ export const DownloadItem: React.FC = ({ if (isLoading) { return ( - + ); @@ -73,7 +73,7 @@ export const DownloadItem: React.FC = ({ if (playbackInfo?.MediaSources?.[0].SupportsDirectPlay === false) { return ( - + ); @@ -82,7 +82,7 @@ export const DownloadItem: React.FC = ({ if (process && process.item.Id !== item.Id!) { return ( {}}> - + @@ -96,7 +96,7 @@ export const DownloadItem: React.FC = ({ router.push("/downloads"); }} > - + {process.progress === 0 ? ( ) : ( @@ -120,7 +120,7 @@ export const DownloadItem: React.FC = ({ router.push("/downloads"); }} > - + @@ -132,7 +132,7 @@ export const DownloadItem: React.FC = ({ startRemuxing(); }} > - + diff --git a/components/PlayedStatus.tsx b/components/PlayedStatus.tsx index 51451d9c..87a1816f 100644 --- a/components/PlayedStatus.tsx +++ b/components/PlayedStatus.tsx @@ -47,7 +47,7 @@ export const PlayedStatus: React.FC<{ item: BaseItemDto }> = ({ item }) => { invalidateQueries(); }} > - + @@ -63,7 +63,7 @@ export const PlayedStatus: React.FC<{ item: BaseItemDto }> = ({ item }) => { invalidateQueries(); }} > - +