diff --git a/components/Album/index.tsx b/components/Album/index.tsx
index 3073c177..d19584e0 100644
--- a/components/Album/index.tsx
+++ b/components/Album/index.tsx
@@ -86,21 +86,16 @@ export function AlbumScreen({
])
)}
- renderItem={({ item: track, index }) => {
-
- return (
-
- )
-
- }}
+ renderItem={({ item: track, index }) =>
+
+ }
ListFooterComponent={(
-
item.Id!}
data={album.ArtistItems}
- renderItem={({ index, item: artist }) => {
- return (
+ renderItem={({ index, item: artist }) =>
- )
- }}
- />
+
+ }
+ />
)}
diff --git a/components/Albums/component.tsx b/components/Albums/component.tsx
index 4606e25b..4e95c486 100644
--- a/components/Albums/component.tsx
+++ b/components/Albums/component.tsx
@@ -25,20 +25,18 @@ export default function Albums({ navigation }: AlbumsProps) : React.JSX.Element
onRefresh={refetch}
/>
}
- renderItem={({ index, item: album}) => {
- return (
- {
- navigation.navigate("Album", { album })
- }}
- width={width / 2.1}
- />
- )
- }}
+ renderItem={({ index, item: album}) =>
+ {
+ navigation.navigate("Album", { album })
+ }}
+ width={width / 2.1}
+ />
+ }
/>
)
}
\ No newline at end of file
diff --git a/components/Artist/index.tsx b/components/Artist/index.tsx
index a75f2149..bfd7155a 100644
--- a/components/Artist/index.tsx
+++ b/components/Artist/index.tsx
@@ -81,22 +81,20 @@ export function ArtistScreen({
}}
data={albums}
numColumns={columns} // TODO: Make this adjustable
- renderItem={({ item: album }) => {
- return (
- {
- navigation.navigate('Album', {
- album
- })
- }}
- />
- )
- }}
+ renderItem={({ item: album }) =>
+ {
+ navigation.navigate('Album', {
+ album
+ })
+ }}
+ />
+ }
/>
)
diff --git a/components/Artists/component.tsx b/components/Artists/component.tsx
index b7abdcb6..43f5801c 100644
--- a/components/Artists/component.tsx
+++ b/components/Artists/component.tsx
@@ -43,18 +43,16 @@ export default function Artists({
onRefresh={refetch}
/>
}
- renderItem={({ index, item: artist}) => {
- return (
- {
- navigation.navigate("Artist", { artist })
- }}
- width={width / 2.1}
- />
- )
- }}
+ renderItem={({ index, item: artist}) =>
+ {
+ navigation.navigate("Artist", { artist })
+ }}
+ width={width / 2.1}
+ />
+ }
/>
)
}
\ No newline at end of file
diff --git a/components/Global/components/horizontal-list.tsx b/components/Global/components/horizontal-list.tsx
index c3f49029..f09a923d 100644
--- a/components/Global/components/horizontal-list.tsx
+++ b/components/Global/components/horizontal-list.tsx
@@ -1,9 +1,7 @@
import { BaseItemDto } from "@jellyfin/sdk/lib/generated-client/models/base-item-dto";
import React from "react";
import { FlatList, ListRenderItem } from "react-native";
-import { ItemCard } from "./item-card";
import IconCard from "../helpers/icon-card";
-import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client/models";
import { horizontalCardLimit } from "../component.config";
interface HorizontalCardListProps {
diff --git a/components/Library/component.tsx b/components/Library/component.tsx
index 5c4f1a80..71865719 100644
--- a/components/Library/component.tsx
+++ b/components/Library/component.tsx
@@ -22,8 +22,7 @@ export default function Library({
contentInsetAdjustmentBehavior="automatic"
data={Categories}
numColumns={2}
- renderItem={({ index, item }) => {
- return (
+ renderItem={({ index, item }) =>
- )
- }}
+ }
/>
)
diff --git a/components/Playlist/component.tsx b/components/Playlist/component.tsx
index 2644ba47..7b920622 100644
--- a/components/Playlist/component.tsx
+++ b/components/Playlist/component.tsx
@@ -177,24 +177,19 @@ export default function Playlist({
});
}}
refreshing={isPending}
- renderItem={({ item: track, getIndex, drag }) => {
-
- const index = getIndex();
-
- return (
-