|
|
@ -12,7 +12,7 @@ import fontSize from "../../../constants/fontSize"; |
|
|
|
const ios = Platform.OS === "ios"; |
|
|
|
const ios = Platform.OS === "ios"; |
|
|
|
|
|
|
|
|
|
|
|
function MyBooks({ books, grades, theme }) { |
|
|
|
function MyBooks({ books, grades, theme }) { |
|
|
|
return books.length ? ( |
|
|
|
return books?.filter((book) => book.condition >= 2).length ? ( |
|
|
|
<View style={[tw("flex w-full mb-5")]}> |
|
|
|
<View style={[tw("flex w-full mb-5")]}> |
|
|
|
<View |
|
|
|
<View |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
@ -37,7 +37,7 @@ function MyBooks({ books, grades, theme }) { |
|
|
|
> |
|
|
|
> |
|
|
|
کتابهای من |
|
|
|
کتابهای من |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
|
|
|
|
|
|
|
|
<FlatList |
|
|
|
<FlatList |
|
|
|
showsHorizontalScrollIndicator={false} |
|
|
|
showsHorizontalScrollIndicator={false} |
|
|
|
style={[tw("py-3")]} |
|
|
|
style={[tw("py-3")]} |
|
|
|