Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Functional Programming
Diskuy-Frontend
Commits
fbd4d610
Commit
fbd4d610
authored
Feb 24, 2021
by
Jonathan Chandra
Browse files
edit pagination item per page and edit Post.css
parent
6ec04c47
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/components/thread/CreateThread.jsx
View file @
fbd4d610
...
...
@@ -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`
,
{
...
...
src/components/thread/Pagination.jsx
View file @
fbd4d610
...
...
@@ -15,7 +15,7 @@ export default function Pagination(props) {
<
div
>
<
PaginationComponent
activePage
=
{
activePage
}
itemsCountPerPage
=
{
2
5
}
itemsCountPerPage
=
{
1
5
}
totalItemsCount
=
{
props
.
totalItems
}
pageRangeDisplayed
=
{
5
}
onChange
=
{
handlePageChange
}
...
...
src/styles/thread/Post.css
View file @
fbd4d610
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment