diff --git a/components/BlogPostCard.js b/components/BlogPostCard.js index 140b27da..27c50b17 100644 --- a/components/BlogPostCard.js +++ b/components/BlogPostCard.js @@ -21,9 +21,9 @@ const BlogPostCard = ({ post }) => {
{post.category}
- {post.tags.map(tag => ())} {post.date.start_date} +
{post.tags.map(tag => ())}

{post.summary}

diff --git a/components/RewardButton.js b/components/RewardButton.js index 1e6de761..e0b12354 100644 --- a/components/RewardButton.js +++ b/components/RewardButton.js @@ -1,51 +1,30 @@ import React from 'react' -import { createPopper } from '@popperjs/core' /** * 赞赏按钮 * @returns {JSX.Element} * @constructor */ -const RewardButton = () => { +const RewardButton = () => { const [popoverShow, setPopoverShow] = React.useState(false) const btnRef = React.createRef() - const popoverRef = React.createRef() const openPopover = () => { - createPopper(btnRef.current, popoverRef.current, { - placement: 'top' - }) setPopoverShow(true) } const closePopover = () => { setPopoverShow(false) } return ( -
{ - openPopover() - }} - onMouseLeave={() => { - closePopover() - }}> -
-
- - 打赏 -
+
+
+ + 打赏
-