mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-10 09:02:50 +00:00
client - thread page pagination done
This commit is contained in:
@@ -99,8 +99,8 @@ export class Forum extends React.Component<Props, State> {
|
||||
this.setState({
|
||||
threads,
|
||||
pageThreads: [...threads].splice(threadIndex, threadsPerPage),
|
||||
pageLinks: pagination(page, numPages) },
|
||||
);
|
||||
pageLinks: pagination(page, numPages),
|
||||
});
|
||||
}
|
||||
|
||||
private orderBy(threads: ThreadModel[], props: Props) {
|
||||
@@ -235,7 +235,7 @@ export class Forum extends React.Component<Props, State> {
|
||||
return (
|
||||
<div className="forum-row forum-row--header">
|
||||
<div className="forum-cell forum-cell--header forum-cell--header-footer flex-1">
|
||||
<div>
|
||||
<div className="flex">
|
||||
<span style={{ marginRight: '10px' }}>Page:</span>
|
||||
<PaginationLinks
|
||||
activePage={this.routeParams().page}
|
||||
|
||||
Reference in New Issue
Block a user