fix: linter
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user