Skip to content

Commit

Permalink
remove has_universe_selector
Browse files Browse the repository at this point in the history
  • Loading branch information
kavigupta committed Aug 13, 2024
1 parent 9cbc260 commit b144ee8
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 17 deletions.
4 changes: 0 additions & 4 deletions react/src/components/article-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ class ArticlePanel extends PageTemplateClass {
elements_to_render: [this.headers_ref.current, this.table_ref.current, this.map_ref.current],
})
}

has_universe_selector() {
return true;
}
}

function ComparisonSearchBox(props) {
Expand Down
4 changes: 0 additions & 4 deletions react/src/components/comparison-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ class ComparisonPanel extends PageTemplateClass {
})
}

has_universe_selector() {
return true;
}

main_content(template_info) {
const self = this;
if (this.props.names == undefined) {
Expand Down
4 changes: 0 additions & 4 deletions react/src/components/statistic-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ class StatisticPanel extends PageTemplateClass {
})
}

has_universe_selector() {
return true;
}

is_ascending() {
return this.props.ordering === "ascending";
}
Expand Down
5 changes: 0 additions & 5 deletions react/src/page_template/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,11 @@ class PageTemplateClass extends React.Component {
render() {
return <PageTemplate
screencap_elements={this.screencap_elements()}
has_universe_selector={this.has_universe_selector()}
universes={this.props.universes}
main_content={template_info => this.main_content(template_info)}
/>
}

has_universe_selector() {
return false;
}

screencap_elements() {
// not implemented, should be overridden
return undefined;
Expand Down

0 comments on commit b144ee8

Please sign in to comment.