Skip to content

Commit

Permalink
feat(topic landing): display new topic landing page when admin is logged
Browse files Browse the repository at this point in the history
  • Loading branch information
yonadavGit committed Feb 11, 2025
1 parent 0e9d351 commit f5c38c3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions static/js/ReaderPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -969,9 +969,16 @@ class ReaderPanel extends Component {
/>
);
} else {
menu = (
menu = Sefaria.is_moderator ? (
<TopicsLandingPage openTopic={this.props.openTopic}/>
);
) :
<TopicsPage
key={"TopicsPage"}
setNavTopic={this.setNavigationTopic}
multiPanel={this.props.multiPanel}
initialWidth={this.state.width}
/>
;
}

} else if (this.state.menuOpen === "allTopics") {
Expand Down

0 comments on commit f5c38c3

Please sign in to comment.