|
|
@ -3,8 +3,8 @@ import StarRatingComponent from "react-star-rating-component"; |
|
|
|
import starGrayIcon from '../../assets/icons/starGray.svg'; |
|
|
|
import starGrayIcon from '../../assets/icons/starGray.svg'; |
|
|
|
import starYellowIcon from '../../assets/icons/starYellow.svg'; |
|
|
|
import starYellowIcon from '../../assets/icons/starYellow.svg'; |
|
|
|
|
|
|
|
|
|
|
|
function StarRating() { |
|
|
|
function StarRating({value}) { |
|
|
|
const [rate, setRating] = useState(2); |
|
|
|
const [rate, setRating] = useState(value); |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<StarRatingComponent |
|
|
|
<StarRatingComponent |
|
|
|
name="rate1" |
|
|
|
name="rate1" |
|
|
|