|
|
|
@ -7,6 +7,7 @@ import { |
|
|
|
|
TouchableHighlight, |
|
|
|
|
Dimensions, |
|
|
|
|
Platform, |
|
|
|
|
ActivityIndicator, |
|
|
|
|
} from "react-native"; |
|
|
|
|
import { useNavigation } from "@react-navigation/native"; |
|
|
|
|
import { product, userProduct } from "../../../redux/actions"; |
|
|
|
@ -295,6 +296,16 @@ function Book({ |
|
|
|
|
} |
|
|
|
|
> |
|
|
|
|
<> |
|
|
|
|
{whichTypeAdded === "physical" && userProductsLoading ? ( |
|
|
|
|
<ActivityIndicator |
|
|
|
|
color={ |
|
|
|
|
theme === "light" |
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
: Colors.theme1.greenCF |
|
|
|
|
} |
|
|
|
|
size={fontSize.sm} |
|
|
|
|
/> |
|
|
|
|
) : ( |
|
|
|
|
<Text |
|
|
|
|
style={{ |
|
|
|
|
fontFamily: "bold", |
|
|
|
@ -309,6 +320,8 @@ function Book({ |
|
|
|
|
> |
|
|
|
|
خرید نسخه فیزیکی کتاب |
|
|
|
|
</Text> |
|
|
|
|
)} |
|
|
|
|
|
|
|
|
|
<View style={tw("flex flex-row-reverse items-center")}> |
|
|
|
|
<View style={tw("w-px h-full bg-green-300")}></View> |
|
|
|
|
<View style={tw("flex")}> |
|
|
|
@ -370,6 +383,16 @@ function Book({ |
|
|
|
|
} |
|
|
|
|
> |
|
|
|
|
<> |
|
|
|
|
{whichTypeAdded === "digital" && userProductsLoading ? ( |
|
|
|
|
<ActivityIndicator |
|
|
|
|
color={ |
|
|
|
|
theme === "light" |
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
: Colors.theme1.greenCF |
|
|
|
|
} |
|
|
|
|
size={fontSize.sm} |
|
|
|
|
/> |
|
|
|
|
) : ( |
|
|
|
|
<Text |
|
|
|
|
style={{ |
|
|
|
|
fontFamily: "bold", |
|
|
|
@ -384,6 +407,7 @@ function Book({ |
|
|
|
|
> |
|
|
|
|
خرید نسخه دیجیتال کتاب |
|
|
|
|
</Text> |
|
|
|
|
)} |
|
|
|
|
<View style={tw("flex")}> |
|
|
|
|
<Text |
|
|
|
|
style={[ |
|
|
|
@ -473,6 +497,16 @@ function Book({ |
|
|
|
|
} |
|
|
|
|
> |
|
|
|
|
<> |
|
|
|
|
{whichTypeAdded === "video" && userProductsLoading ? ( |
|
|
|
|
<ActivityIndicator |
|
|
|
|
color={ |
|
|
|
|
theme === "light" |
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
: Colors.theme1.greenCF |
|
|
|
|
} |
|
|
|
|
size={fontSize.sm} |
|
|
|
|
/> |
|
|
|
|
) : ( |
|
|
|
|
<Text |
|
|
|
|
style={{ |
|
|
|
|
fontFamily: "bold", |
|
|
|
@ -487,6 +521,7 @@ function Book({ |
|
|
|
|
> |
|
|
|
|
خرید دوره ویدئویی کتاب |
|
|
|
|
</Text> |
|
|
|
|
)} |
|
|
|
|
<View style={tw("flex flex-row-reverse")}> |
|
|
|
|
<View style={tw("w-px h-full bg-green-500")}></View> |
|
|
|
|
<Text |
|
|
|
|