点赞数
This commit is contained in:
parent
72e7d51398
commit
bb3f949a4a
|
|
@ -29,6 +29,8 @@ const EssayDetails = (
|
|||
const { item, cover, isSelfLiked } = props.data;
|
||||
const [showScrollTop, setShowScrollTop] = useState(false);
|
||||
|
||||
const { likeCount } = props.data;
|
||||
|
||||
useEffect(() => {
|
||||
const handleScroll = () => {
|
||||
if (window.scrollY > 300) {
|
||||
|
|
@ -97,6 +99,7 @@ const EssayDetails = (
|
|||
) : (
|
||||
<OakIcon name='praise' size={25} />
|
||||
)}
|
||||
<span>{likeCount}</span>
|
||||
</div>
|
||||
</div>
|
||||
<MdViewer md={item.content!} />
|
||||
|
|
|
|||
Loading…
Reference in New Issue