1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-11 17:42:48 +00:00

client - forum nav should be working

This commit is contained in:
2018-01-13 19:44:23 -06:00
parent 58b913f5b8
commit 269c8a2f50
13 changed files with 213 additions and 59 deletions

View File

@@ -24,7 +24,7 @@ export class Thread extends React.Component<Props, State> {
}
private async getThreads() {
const thread = await ThreadService.getThread(this.props.match.params['id']);
const thread = await ThreadService.getThread(this.props.match.params['threadId']);
thread.replies = [thread as any, ...thread.replies]; // add the thread topic to the front of the list
this.setState({ thread });
}
@@ -71,7 +71,8 @@ export class Thread extends React.Component<Props, State> {
<ScrollToTop {...this.props}>
<div style={{ padding: '16px 0 12px 0' }}>
<ForumNav/>
{/* todo: */}
<ForumNav categoryId={parseInt(this.props.match.params['categoryId'], 10)} {...this.props}/>
</div>
<div className="topic-bg">