prettier config
This commit is contained in:
1 parent
a143e274f4
commit
5d03502e5c
69 files changed
+536
-536
No files matched your search
@@ -6,7 +6,7 @@ const StarRating = ({
|
||||
countStars = 1,
|
||||
countActiveStars = 1,
|
||||
color = "#52B709",
|
||||
size = 61,
|
||||
size = 61
|
||||
}) => {
|
||||
const [shadedStars, setShadedStars] = useState([]);
|
||||
const [noShadedStars, setNoShadedStars] = useState([]);
|
||||
@@ -22,16 +22,16 @@ const StarRating = ({
|
||||
}, []);
|
||||
|
||||
const ratingStyle = {
|
||||
"--size": size + "px",
|
||||
"--size": size + "px"
|
||||
};
|
||||
const activeStyle = {
|
||||
"--width": percent + "%",
|
||||
"--color": color,
|
||||
"--content": shadedStars.join(""),
|
||||
"--content": shadedStars.join("")
|
||||
};
|
||||
const bodyStyle = {
|
||||
"--content": noShadedStars.join(""),
|
||||
"--color": color,
|
||||
"--color": color
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user