diff --git a/src/components/posts/Post.jsx b/src/components/posts/Post.jsx index 8d882b4..6bc1442 100644 --- a/src/components/posts/Post.jsx +++ b/src/components/posts/Post.jsx @@ -3,14 +3,8 @@ import { addEvent, createVNode } from "../../lib"; import { globalStore } from "../../stores/globalStore.js"; import { toTimeFormat } from "../../utils/index.js"; -export const Post = ({ - id, - author, - time, - content, - likeUsers, - activationLike = false, -}) => { +export const Post = ({ id, author, time, content, likeUsers }) => { + const { currentUser } = globalStore.getState(); const { like } = globalStore.actions; const onClickLike = () => { @@ -28,7 +22,7 @@ export const Post = ({
{content}