Commit a08c5fbe by jaymehta
2 parents 8634093b 4fb5e42c
...@@ -44,7 +44,8 @@ const ReviewsListing = ({ activityId, setshowReviews, isVendor }) => { ...@@ -44,7 +44,8 @@ const ReviewsListing = ({ activityId, setshowReviews, isVendor }) => {
<Accordion.Item key={item.id} eventKey={item.id}> <Accordion.Item key={item.id} eventKey={item.id}>
<Accordion.Header> <Accordion.Header>
<div className="title-accord"> <div className="title-accord">
<span>{`${item.attributes.comments.slice(0, 80).trim()}...`}</span> <span className="rt-name">{`by ${item.attributes.endUser.data.attributes.email}`}</span> <span>{`${item.attributes.comments.slice(0, 80).trim()}...`}</span>{" "}
<span className="rt-name">{`by ${item.attributes.endUser.data.attributes.email}`}</span>
</div> </div>
</Accordion.Header> </Accordion.Header>
<Accordion.Body> <Accordion.Body>
...@@ -79,31 +80,33 @@ const ReviewsListing = ({ activityId, setshowReviews, isVendor }) => { ...@@ -79,31 +80,33 @@ const ReviewsListing = ({ activityId, setshowReviews, isVendor }) => {
}} }}
centered centered
> >
<Modal.Header closeButton>Are you sure you want to delete this review?</Modal.Header> <Modal.Header closeButton><strong>Are you sure you want to delete this review?</strong></Modal.Header>
<Modal.Body> <Modal.Body>
<div className="row"> <div className="row">
<Button <div className="col-12 d-flex align-items-center justify-content-center">
className="btnAdd btnApprove m-0" <Button
onClick={async () => { className="btnAdd btnApprove me-3 w-100"
const res = await deleteReview({ reviewId }); onClick={async () => {
dispatch(getReviewsAction({ activityId })); const res = await deleteReview({ reviewId });
// dispatch(getActivitiesByFilters({})); dispatch(getReviewsAction({ activityId }));
toast.success("Review deleted"); // dispatch(getActivitiesByFilters({}));
setshowModal(false); toast.success("Review deleted");
// console.log(res); setshowModal(false);
}} // console.log(res);
> }}
Yes >
</Button> Yes
<Button </Button>
className="btnAdd btnReject m-0" <Button
onClick={() => { className="btnAdd btnReject m-0 w-100"
setshowModal(false); onClick={() => {
setreviewId(); setshowModal(false);
}} setreviewId();
> }}
Cancel >
</Button> Cancel
</Button>
</div>
</div> </div>
</Modal.Body> </Modal.Body>
</Modal> </Modal>
......
...@@ -101,7 +101,7 @@ const GuestReviews = ({ activityById }) => { ...@@ -101,7 +101,7 @@ const GuestReviews = ({ activityById }) => {
rating={data.attributes.rating} rating={data.attributes.rating}
starRatedColor="#ffe20" // Set the rated color to yellow starRatedColor="#ffe20" // Set the rated color to yellow
starHoverColor="#ffe20" // Set the hover color to yellow starHoverColor="#ffe20" // Set the hover color to yellow
changeRating={() => {}} changeRating={() => { }}
numberOfStars={5} numberOfStars={5}
name="rating" name="rating"
starDimension="20px" // Set star width and height starDimension="20px" // Set star width and height
...@@ -149,20 +149,24 @@ const GuestReviews = ({ activityById }) => { ...@@ -149,20 +149,24 @@ const GuestReviews = ({ activityById }) => {
starDimension="20px" // Set star width and height starDimension="20px" // Set star width and height
/> />
</div> </div>
<textarea <div className="row">
// style={{ width: "50%" }} <div className="col-md-6">
rows={4} <textarea
className="p-2 mx-2 col-md-6" // style={{ width: "50%" }}
placeholder="Comments" rows={4}
name="comments" className="p-2 w-100"
value={comments} placeholder="Comments"
onChange={e => { name="comments"
e.preventDefault(); value={comments}
// console.log(e.target.value);4 onChange={e => {
setcomments(e.target.value); e.preventDefault();
// setrejectionReasonText(e.target.value); // console.log(e.target.value);4
}} setcomments(e.target.value);
/> // setrejectionReasonText(e.target.value);
}}
/>
</div>
</div>
<div className="view-all-btn my-3"> <div className="view-all-btn my-3">
<Button <Button
disabled={rating == 0 || comments == ""} disabled={rating == 0 || comments == ""}
......
...@@ -17,11 +17,11 @@ const Banner = ({ homeBanner }) => { ...@@ -17,11 +17,11 @@ const Banner = ({ homeBanner }) => {
<div> <div>
<Swiper <Swiper
slidesPerView={1} slidesPerView={1}
autoplay={{ // autoplay={{
delay: 9000, // delay: 9000,
disableOnInteraction: false // disableOnInteraction: false
}} // }}
// autoplay={false} autoplay={false}
spaceBetween={10} spaceBetween={10}
navigation={true} navigation={true}
pagination={{ pagination={{
......
...@@ -46,7 +46,7 @@ const Header = () => { ...@@ -46,7 +46,7 @@ const Header = () => {
}, [endUser]); }, [endUser]);
return ( return (
<header className={`header_wrap ${isSticky ? "stick" : ""}`}> <header className={`header_wrap ${isSticky ? "stick" : ""}`}>
{isSticky && <div style={{height :76}} className="bg-transparent"></div>} {isSticky && <div style={{ height: 76 }} className="bg-transparent"></div>}
<Navbar expand="lg" className="bg-body-tertiary"> <Navbar expand="lg" className="bg-body-tertiary">
<Container fluid> <Container fluid>
<Navbar.Brand href="/"> <Navbar.Brand href="/">
...@@ -57,6 +57,9 @@ const Header = () => { ...@@ -57,6 +57,9 @@ const Header = () => {
<Navbar.Toggle aria-controls="navbarScroll" /> <Navbar.Toggle aria-controls="navbarScroll" />
<Navbar.Collapse id="navbarScroll"> <Navbar.Collapse id="navbarScroll">
<Nav className=" my-2 my-lg-0" style={{ maxHeight: "100px" }} navbarScroll> <Nav className=" my-2 my-lg-0" style={{ maxHeight: "100px" }} navbarScroll>
<ActiveLink href="/user/wishlist" activeClassName="active">
<a className="nav-link ">Wishlist</a>
</ActiveLink>
<ActiveLink href="/blog" activeClassName="active"> <ActiveLink href="/blog" activeClassName="active">
<a className="nav-link ">Blogs</a> <a className="nav-link ">Blogs</a>
</ActiveLink> </ActiveLink>
......
import React from "react"; import React from "react";
import Layout from "../../../components/layout/Layout"; import Layout from "../../../components/layout/Layout";
import MyWhishList from "../../../components/user/MyWhishList"; import MyWhishList from "../../../components/user/MyWhishList";
import { useSelector } from "react-redux";
export default function UserProfilePage () { export default function UserProfilePage() {
const { wishlists } = useSelector(state => state.wishlists)
return ( return (
<Layout> <Layout>
<MyWhishList /> <MyWhishList data={wishlists}/>
</Layout> </Layout>
); );
}; };
\ No newline at end of file \ No newline at end of file
...@@ -547,7 +547,7 @@ export const getWishlists = ...@@ -547,7 +547,7 @@ export const getWishlists =
} }
} }
}, },
populate: ["endUser", "experience"] populate: ["endUser", "experience", "experience.image"]
}; };
const queryString = qs.stringify(query, { const queryString = qs.stringify(query, {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!