|
|
@ -6,6 +6,9 @@ import { publicApi, userFavorite } from "../../redux/actions"; |
|
|
|
import bookImage from "./book.svg"; |
|
|
|
import bookImage from "./book.svg"; |
|
|
|
import bookmarkIcon from "./bookmark.svg"; |
|
|
|
import bookmarkIcon from "./bookmark.svg"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//components
|
|
|
|
|
|
|
|
import Empty from "../../components/Empty"; |
|
|
|
|
|
|
|
|
|
|
|
const Favorites = ({ |
|
|
|
const Favorites = ({ |
|
|
|
bookmarkList, |
|
|
|
bookmarkList, |
|
|
|
isMobile, |
|
|
|
isMobile, |
|
|
@ -24,12 +27,16 @@ const Favorites = ({ |
|
|
|
// alert();
|
|
|
|
// alert();
|
|
|
|
window.scrollTo(0, 0); |
|
|
|
window.scrollTo(0, 0); |
|
|
|
}, []); |
|
|
|
}, []); |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="flex flex-wrap"> |
|
|
|
<div className="flex flex-wrap flex-1"> |
|
|
|
{bookmarkList.map((bookmark, index) => ( |
|
|
|
{bookmarkList?.length ? ( |
|
|
|
<Bookmark key={index} bookmark={bookmark} /> |
|
|
|
bookmarkList.map((bookmark, index) => ( |
|
|
|
))} |
|
|
|
<Bookmark key={index} bookmark={bookmark} /> |
|
|
|
|
|
|
|
)) |
|
|
|
|
|
|
|
) : ( |
|
|
|
|
|
|
|
<Empty text="هیج موردی در علاقهمندیهای شما وجود ندارد." /> |
|
|
|
|
|
|
|
)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
); |
|
|
|
); |
|
|
|
}; |
|
|
|
}; |
|
|
|