diff --git a/src/assets/styles/_posts.scss b/src/assets/styles/_posts.scss index b6e6194..258cacd 100644 --- a/src/assets/styles/_posts.scss +++ b/src/assets/styles/_posts.scss @@ -270,11 +270,10 @@ background: $base-gray; } - textarea { + p { background: $base-gray; cursor: default; padding: 0.6rem 1.2rem; - resize: none; font-size: 1.6rem; border-radius: 0.5rem; } diff --git a/src/pages/Post.tsx b/src/pages/Post.tsx index 8522341..49fa789 100644 --- a/src/pages/Post.tsx +++ b/src/pages/Post.tsx @@ -21,13 +21,14 @@ const Post = () => { const [postData, setPostData] = useState(); const { posts } = useContext(PostContext).postValue; const { id } = useParams(); - + const parser = new DOMParser(); useEffect(() => { if (posts) { if (posts[0].id !== -1) { posts.map((post: PostType) => { if (post.id.toString() === id) { setPostData(post); + // console.log(parser.parseFromString(post.summary, "text/xml")); } }); } @@ -66,10 +67,11 @@ const Post = () => {

Summary

- +

Created