diff --git a/src/components/OffersInterest/ManageInterestOffer.jsx b/src/components/OffersInterest/ManageInterestOffer.jsx index 5e3c136..523dff8 100644 --- a/src/components/OffersInterest/ManageInterestOffer.jsx +++ b/src/components/OffersInterest/ManageInterestOffer.jsx @@ -75,7 +75,7 @@ export default function ManageInterestOffer(props) { type="button" className="min-w-[45px] h-auto text-[#374557] border border-sky-blue p-1 rounded-full" onClick={() => - navigate(props.offerDetails.pathname, { replace: true }) + navigate('/offer-interest', { replace: true }) } > {/* message list */} {currentMessageList.map((item, index)=>( -
+

2023-04-06-from { }Dummy name

I am testing message

diff --git a/src/components/OffersInterest/OffersInterestTable.jsx b/src/components/OffersInterest/OffersInterestTable.jsx index 7e4951b..167bb81 100644 --- a/src/components/OffersInterest/OffersInterestTable.jsx +++ b/src/components/OffersInterest/OffersInterestTable.jsx @@ -52,9 +52,9 @@ export default function OffersInterestTable({offerInterestList, className}) { */} - {currentOfferInterestList?.map((item, idx) => { + {currentOfferInterestList?.map((item, index) => { return ( - +
diff --git a/src/components/OffersInterest/OthersInterestedTable.jsx b/src/components/OffersInterest/OthersInterestedTable.jsx index 8655fa3..7f2d704 100644 --- a/src/components/OffersInterest/OthersInterestedTable.jsx +++ b/src/components/OffersInterest/OthersInterestedTable.jsx @@ -4,6 +4,8 @@ import LoadingSpinner from "../Spinners/LoadingSpinner"; import { useNavigate, useLocation, Link } from "react-router-dom"; import { handlePagingFunc } from "../Pagination/HandlePagination"; import PaginatedList from "../Pagination/PaginatedList"; +import { useDispatch } from "react-redux"; +import { tableReload } from "../../store/TableReloads"; import { PriceFormatter } from "../Helpers/PriceFormatter"; @@ -11,6 +13,7 @@ import familyImage from '../../assets/images/no-family-side.png' export default function OthersInterestTable({othersInterestedList, className}) { + const dispatch = useDispatch() const navigate = useNavigate(); let { pathname } = useLocation(); @@ -52,9 +55,9 @@ export default function OthersInterestTable({othersInterestedList, className}) { */} - {currentOthersInterestedList?.map((item, idx) => { + {currentOthersInterestedList?.map((item, index) => { return ( - +
@@ -87,6 +90,7 @@ export default function OthersInterestTable({othersInterestedList, className}) {