Fakultas Ilmu Komputer UI

Commit fbd4d610 authored by Jonathan Chandra's avatar Jonathan Chandra
Browse files

edit pagination item per page and edit Post.css

parent 6ec04c47
...@@ -36,6 +36,7 @@ export default function ListThreads(props) { ...@@ -36,6 +36,7 @@ export default function ListThreads(props) {
const handleSubmit = async (event) => { const handleSubmit = async (event) => {
event.preventDefault(); event.preventDefault();
try { try {
console.log(body);
const thisThread = await axios.post( const thisThread = await axios.post(
`${API_URL}/threads`, `${API_URL}/threads`,
{ {
......
...@@ -15,7 +15,7 @@ export default function Pagination(props) { ...@@ -15,7 +15,7 @@ export default function Pagination(props) {
<div> <div>
<PaginationComponent <PaginationComponent
activePage={activePage} activePage={activePage}
itemsCountPerPage={25} itemsCountPerPage={15}
totalItemsCount={props.totalItems} totalItemsCount={props.totalItems}
pageRangeDisplayed={5} pageRangeDisplayed={5}
onChange={handlePageChange} onChange={handlePageChange}
......
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
#postContent #isi { #postContent #isi {
font-size: 16px; font-size: 16px;
white-space: pre-line;
} }
.inactive { .inactive {
...@@ -157,8 +158,4 @@ button:focus { ...@@ -157,8 +158,4 @@ button:focus {
} }
}
#isi {
white-space: pre-line;
} }
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment