|
|
@ -1,4 +1,4 @@ |
|
|
|
import React from "react"; |
|
|
|
import React, { useEffect } from "react"; |
|
|
|
import { connect } from "react-redux"; |
|
|
|
import { connect } from "react-redux"; |
|
|
|
import { publicApi, userFavorite } from "../../redux/actions"; |
|
|
|
import { publicApi, userFavorite } from "../../redux/actions"; |
|
|
|
|
|
|
|
|
|
|
@ -20,6 +20,10 @@ const Favorites = ({ |
|
|
|
getList(); |
|
|
|
getList(); |
|
|
|
}, []); |
|
|
|
}, []); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
|
|
|
// alert();
|
|
|
|
|
|
|
|
window.scrollTo(0, 0); |
|
|
|
|
|
|
|
}, []); |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="flex flex-row flex-wrap"> |
|
|
|
<div className="flex flex-row flex-wrap"> |
|
|
|
{bookmarkList.map((bookmark, index) => ( |
|
|
|
{bookmarkList.map((bookmark, index) => ( |
|
|
|