update Header.js, Videos.js and Rates.js

master
Reza_ashrafi 2 years ago
parent 9542fb5b49
commit 77bd18c1a2
  1. 4
      src/screens/Home/components/Header.js
  2. 2
      src/screens/Home/components/Videos.js
  3. 11
      src/screens/Product/components/Rates.js

@ -33,14 +33,14 @@ const Header = ({ title, route, mobile, theme, state = null }) => {
{route ? ( {route ? (
<Pressable <Pressable
onPress={() => navigation.navigate(route, state)} onPress={() => navigation.navigate(route, state)}
style={{ transform: [{ translateX: -fontSize.xl6 / 3 }] }} style={{ transform: [{ translateX: -fontSize.xl6 / 3 }], marginLeft : 4 }}
> >
<Text <Text
style={{ style={{
color: color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white, theme === "light" ? Colors.theme1.green79 : Colors.theme1.white,
fontSize: fontSize.sm, fontSize: fontSize.sm,
fontFamily: "light", fontFamily: "bold",
}} }}
> >
مشاهده همه مشاهده همه

@ -50,7 +50,7 @@ const Video = ({ video, mobile, grades, theme }) => {
return ( return (
<Pressable <Pressable
style={[ style={[
tw(`flex relative ${mobile ? "mr-4" : "ml-5"}`), tw(`flex relative ${mobile ? "ml-3" : "ml-5"}`),
{ width: mobile ? 200 : 260, height: mobile ? 210 : 250 }, { width: mobile ? 200 : 260, height: mobile ? 210 : 250 },
]} ]}
onPress={() => navigation.navigate("Video", { id: video?.id })} onPress={() => navigation.navigate("Video", { id: video?.id })}

@ -40,6 +40,7 @@ function Rates({ rate, productId, addVote, isBuyed = null, theme }) {
type="star" type="star"
ratingCount={5} ratingCount={5}
imageSize={width / 25} imageSize={width / 25}
ratingColor={Colors.theme1.grayE3}
tintColor={ tintColor={
theme === "light" ? Colors.theme1.white : Colors.theme1.dark theme === "light" ? Colors.theme1.white : Colors.theme1.dark
} }
@ -60,11 +61,11 @@ function Rates({ rate, productId, addVote, isBuyed = null, theme }) {
</Pressable> </Pressable>
<View style={[tw("flex flex-1"), { width: "60%" }]}> <View style={[tw("flex flex-1"), { width: "60%" }]}>
{[ {[
{ name: "بخش ۱", value: 40 }, { name: "یک ستاره", value: 40 },
{ name: "بخش ۱", value: 20 }, { name: "دو ستاره", value: 10 },
{ name: "بخش ۱", value: 70 }, { name: "سه ستاره", value: 10 },
{ name: "بخش ۱", value: 10 }, { name: "چهار ستاره", value: 30 },
{ name: "بخش ۱", value: 50 }, { name: "پنج ستاره", value: 10 },
].map((field, index) => ( ].map((field, index) => (
<Progress key={index} data={field} theme={theme} /> <Progress key={index} data={field} theme={theme} />
))} ))}

Loading…
Cancel
Save