Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
SmashinFries committed Nov 13, 2023
1 parent fc35f54 commit 2894b3e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/models/sections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ export const ModelSection = ({ data, isLoading, title }: ModelSectionProps) => {
<View style={{ paddingVertical: 5 }}>
<ListHeading title={title} titleVariant="headlineMedium" />
<View style={{ maxHeight: 300, minHeight: 250 }}>
{!isLoading ? (
<FlashList
data={data?.items}
keyExtractor={keyExtractor}
renderItem={(props) => (
<ModelCard
isSaved={
models.find((value) => value.id === props.item.id)
models?.find((value) => value.id === props.item.id)
? true
: false
}
Expand All @@ -46,9 +45,6 @@ export const ModelSection = ({ data, isLoading, title }: ModelSectionProps) => {
showsHorizontalScrollIndicator={false}
horizontal
/>
) : (
<LoadingIcon />
)}
</View>
</View>
);
Expand Down

0 comments on commit 2894b3e

Please sign in to comment.