1
0
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:
2018-01-22 21:29:49 -06:00
parent 04be6543b6
commit adbe3c6857
8 changed files with 105 additions and 20 deletions

View File

@@ -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}