Commit 7c1b7f5f by Ravindra Kanojiya

updated review modal

1 parent 7ab9b79a
...@@ -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>
......
...@@ -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={{
......
...@@ -1800,6 +1800,7 @@ span.form-error, ...@@ -1800,6 +1800,7 @@ span.form-error,
.btnAdd.btnReject { .btnAdd.btnReject {
background-color: #e02424 !important; background-color: #e02424 !important;
border: 1px solid #e02424;
color: #ffff !important; color: #ffff !important;
} }
...@@ -1943,6 +1944,7 @@ span.form-error, ...@@ -1943,6 +1944,7 @@ span.form-error,
border-radius: 6px; border-radius: 6px;
padding: 0.3rem 0.5rem; padding: 0.3rem 0.5rem;
font-size: calc(12px + (13 - 12) * (100vw - 320px) / (1920 - 320)) !important; font-size: calc(12px + (13 - 12) * (100vw - 320px) / (1920 - 320)) !important;
line-height: calc(12px + (13 - 12) * (100vw - 320px) / (1920 - 320)) !important;
} }
.info .top-name .title { .info .top-name .title {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!