fix: linter

This commit is contained in:
Lei Nelissen
2025-05-24 00:34:44 +02:00
parent 76f3ce3972
commit 2e3ced0680
3 changed files with 4 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ const SectionHeading = React.memo(function SectionHeading(props: {
interface GeneratedAlbumItemProps { interface GeneratedAlbumItemProps {
id: ReactText; id: ReactText;
imageUrl: string | null; imageUrl?: string | null;
name: string; name: string;
artist: string; artist: string;
onPress: (id: string) => void; onPress: (id: string) => void;
@@ -136,7 +136,7 @@ const Albums: React.FC = () => {
<GeneratedAlbumItem <GeneratedAlbumItem
key={i} key={i}
id={id} id={id}
imageUrl={albums[id].ImageTags.Primary ? getImage(albums[id]) : null} imageUrl={getImage(albums[id])}
name={albums[id]?.Name || ''} name={albums[id]?.Name || ''}
artist={albums[id]?.AlbumArtist || ''} artist={albums[id]?.AlbumArtist || ''}
onPress={selectAlbum} onPress={selectAlbum}

View File

@@ -19,7 +19,7 @@ import { chunk } from 'lodash';
interface GeneratedAlbumItemProps { interface GeneratedAlbumItemProps {
id: ReactText; id: ReactText;
imageUrl: string; imageUrl: string | undefined;
name: string; name: string;
artist: string; artist: string;
onPress: (id: string) => void; onPress: (id: string) => void;

View File

@@ -59,7 +59,7 @@ const SectionHeading = React.memo(function SectionHeading(props: { label: string
interface GeneratedArtistItemProps { interface GeneratedArtistItemProps {
item: SectionArtistItem; item: SectionArtistItem;
imageURL: string; imageURL: string | undefined;
onPress: (payload: SectionArtistItem) => void; onPress: (payload: SectionArtistItem) => void;
} }