|
|
@ -142,7 +142,7 @@ function Product({ |
|
|
|
fontFamily: "demi", |
|
|
|
fontFamily: "demi", |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
{book?.name} |
|
|
|
{book?.name || " "} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
@ -155,7 +155,7 @@ function Product({ |
|
|
|
fontFamily: "regular", |
|
|
|
fontFamily: "regular", |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
{"پایه" + " " + grades[book?.gradeId]} |
|
|
|
{"پایه" + " " + (grades[book?.gradeId] || " ")} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
@ -207,7 +207,7 @@ function Product({ |
|
|
|
{seasons |
|
|
|
{seasons |
|
|
|
?.sort((a, b) => a[0]?.categoryId - b[0]?.categoryId) |
|
|
|
?.sort((a, b) => a[0]?.categoryId - b[0]?.categoryId) |
|
|
|
?.map((season, index) => ( |
|
|
|
?.map((season, index) => ( |
|
|
|
<Season season={season} key={index} id={book?.id} /> |
|
|
|
<Season season={season} key={index} id={book?.id} index={index} /> |
|
|
|
))} |
|
|
|
))} |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</ScrollView> |
|
|
|
</ScrollView> |
|
|
|