Commit 6bd2fb1d by jaymehta

.

1 parent 84a7c51d
...@@ -18,7 +18,7 @@ const VendorDetails = ({ id, backClick, setShowDetail, showDetail, detail }) => ...@@ -18,7 +18,7 @@ const VendorDetails = ({ id, backClick, setShowDetail, showDetail, detail }) =>
const dispatch = useDispatch(); const dispatch = useDispatch();
useEffect(() => { useEffect(() => {
dispatch(getActivitiesForAdmin({ vendorId: detail[0].id })); dispatch(getActivitiesForAdmin({ vendorId: detail[0].id }));
console.log("cancel policy", detail[0]) console.log("cancel policy", detail[0]);
}, []); }, []);
useEffect(() => { useEffect(() => {
...@@ -89,22 +89,22 @@ const VendorDetails = ({ id, backClick, setShowDetail, showDetail, detail }) => ...@@ -89,22 +89,22 @@ const VendorDetails = ({ id, backClick, setShowDetail, showDetail, detail }) =>
<div className="row"> <div className="row">
<div className="col-12 col-lg-5"> <div className="col-12 col-lg-5">
<p className="phead">Business Documents</p> <p className="phead">Business Documents</p>
<div className="row"> {/* <div className="row">
<p className="col-12 col-lg-6">Business PAN No.</p> <p className="col-12 col-lg-6">Business PAN No.</p>
<p className="col-12 col-lg-6">{detail[0].attributes.pan}</p> <p className="col-12 col-lg-6">{detail[0].attributes.pan}</p>
</div> </div> */}
<div className="row"> {/* <div className="row">
<p className="col-12 col-lg-6">PAN</p> <p className="col-12 col-lg-6">PAN</p>
<p className="col-12 col-lg-6 pview">View</p> <p className="col-12 col-lg-6 pview">View</p>
</div> </div> */}
<div className="row"> <div className="row">
<p className="col-12 col-lg-6">GST Number</p> <p className="col-12 col-lg-6">EIN Number</p>
<p className="col-12 col-lg-6">{detail[0].attributes.gst}</p> <p className="col-12 col-lg-6">{detail[0].attributes.einNumber}</p>
</div> </div>
<div className="row"> {/* <div className="row">
<p className="col-12 col-lg-6">GST Certificate</p> <p className="col-12 col-lg-6">GST Certificate</p>
<p className="col-12 col-lg-6 pview">View</p> <p className="col-12 col-lg-6 pview">View</p>
</div> </div> */}
<div className="row"> <div className="row">
<p className="col-12 col-lg-6">Business Name</p> <p className="col-12 col-lg-6">Business Name</p>
<p className="col-12 col-lg-6">{detail[0].attributes.businessName}</p> <p className="col-12 col-lg-6">{detail[0].attributes.businessName}</p>
......
...@@ -14,7 +14,6 @@ const VendorListing = () => { ...@@ -14,7 +14,6 @@ const VendorListing = () => {
// Hooks // Hooks
const dispatch = useDispatch(); const dispatch = useDispatch();
const router = useRouter(); const router = useRouter();
const array = [1, 2, 3, 4, 5, 6, 7, 8, 9];
// useState // useState
const [session, setSession] = useState(); const [session, setSession] = useState();
const [loading, setLoading] = useState(true); const [loading, setLoading] = useState(true);
......
...@@ -27,6 +27,8 @@ const GuestReviews = ({ activityById }) => { ...@@ -27,6 +27,8 @@ const GuestReviews = ({ activityById }) => {
setRating(newRating); setRating(newRating);
}; };
console.log("newRating", rating);
return ( return (
<> <>
<section className="guest-reviews-session"> <section className="guest-reviews-session">
...@@ -140,8 +142,8 @@ const GuestReviews = ({ activityById }) => { ...@@ -140,8 +142,8 @@ const GuestReviews = ({ activityById }) => {
<label className=" mb-3 ">Rating: </label>{" "} <label className=" mb-3 ">Rating: </label>{" "}
<StarRatings <StarRatings
className="col-3 mx-2" className="col-3 mx-2"
rating={rating} rating={3}
starRatedColor="#ffe20" // Set the rated color to yellow starRatedColor="#000" // Set the rated color to yellow
starHoverColor="#ffe20" // Set the hover color to yellow starHoverColor="#ffe20" // Set the hover color to yellow
changeRating={handleRatingChange} changeRating={handleRatingChange}
numberOfStars={5} numberOfStars={5}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!