web: rename view_thread to take advantage of new namespaces

This commit is contained in:
2023-12-03 08:49:20 -08:00
parent 071fe2e206
commit be8fd59703
5 changed files with 18 additions and 10 deletions

View File

@@ -5,8 +5,8 @@ use crate::{
graphql::front_page_query::*,
state::{Context, Model, Msg},
view::{
human_age, legacy, pretty_authors, set_title, tags_chiclet, view_header, view_search_pager,
view_thread,
self, human_age, legacy, pretty_authors, set_title, tags_chiclet, view_header,
view_search_pager,
},
};
@@ -14,7 +14,7 @@ pub(super) fn view(model: &Model) -> Node<Msg> {
let content = match &model.context {
Context::None => div![h1!["Loading"]],
Context::Thread(thread_set) => legacy::thread(thread_set),
Context::ThreadResult(thread) => view_thread(thread),
Context::ThreadResult(thread) => view::thread(thread),
Context::Search(search_results) => {
legacy::mobile_search_results(&model.query, search_results)
}