diff --git a/src/components/thread/CreateThread.jsx b/src/components/thread/CreateThread.jsx index 20dab4c3af7501a59d9c2d96cabf3ebe321574f7..2abf4ce5a44838648ac9ad98058d9756e77a23eb 100644 --- a/src/components/thread/CreateThread.jsx +++ b/src/components/thread/CreateThread.jsx @@ -36,6 +36,7 @@ export default function ListThreads(props) { const handleSubmit = async (event) => { event.preventDefault(); try { + console.log(body); const thisThread = await axios.post( `${API_URL}/threads`, { diff --git a/src/components/thread/Pagination.jsx b/src/components/thread/Pagination.jsx index e7fd9a714d4b41f72b0334637762c0f94d2f9ccc..1def24167f0ac4077ae7fe6c05fdebd5e201b772 100644 --- a/src/components/thread/Pagination.jsx +++ b/src/components/thread/Pagination.jsx @@ -15,7 +15,7 @@ export default function Pagination(props) { <div> <PaginationComponent activePage={activePage} - itemsCountPerPage={25} + itemsCountPerPage={15} totalItemsCount={props.totalItems} pageRangeDisplayed={5} onChange={handlePageChange} diff --git a/src/styles/thread/Post.css b/src/styles/thread/Post.css index 2578ef714d0637b765e6956aa822aac96eed5c42..73921240add2dd56e993457134701107e125b0db 100644 --- a/src/styles/thread/Post.css +++ b/src/styles/thread/Post.css @@ -62,6 +62,7 @@ #postContent #isi { font-size: 16px; + white-space: pre-line; } .inactive { @@ -157,8 +158,4 @@ button:focus { } -} - -#isi { - white-space: pre-line; } \ No newline at end of file