refactoring: improved types

This commit is contained in:
ner committed 2024-10-10 17:10:37 +03:00
1 parent 272178d668
commit 5c42608e99
10 files changed
+93 -88

No files matched your search

+2 -3
View File
@@ -7,7 +7,7 @@ import ToggleTrailer from '@/components/Show/components/Trailer';
import { Button } from '@/components/ui/button';
interface Props {
show: Show;
show: Show & Partial<Details>;
onClose?: () => void;
}
@@ -24,8 +24,7 @@ const Actions = ({ onClose, show }: Props) => (
className='h-8 w-1/2 grow'
onClick={() =>
showTorrentsModal({
showId: show.id,
showType: show.type,
imdbID: show.imdb_id!,
title: show.title,
backdrop: show.backdrop,
year: new Date(show.release).getFullYear()