Skip to content

Commit cd141b0

Browse files
authored
Merge pull request #2 from openmc-data-storage/improved-layout
fixing compile errors
2 parents 2e1cb21 + dea7cb5 commit cd141b0

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/sauce/home.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use serde::Serialize;
44
use web_sys::{console, HtmlInputElement, InputEvent};
55
use yew_hooks::use_set;
66
use yew_hooks::use_async;
7-
use yew_custom_components::pagination::Pagination;
7+
// use yew_custom_components::pagination::Pagination;
88
use yew_custom_components::table::{Options, Table};
99
use yew_custom_components::table::types::{ColumnBuilder, TableData};
1010
use crate::types::mock_data::Entry;
@@ -283,7 +283,7 @@ pub fn home() -> Html {
283283
filtered_data[start_index..end_index].to_vec()
284284
};
285285

286-
let total = filtered_data.len().max(1);
286+
// let total = filtered_data.len().max(1);
287287

288288
let oninput_element_search = {
289289
let element_search_term = element_search_term.clone();
@@ -333,21 +333,21 @@ pub fn home() -> Html {
333333
})
334334
};
335335

336-
let pagination_options = yew_custom_components::pagination::Options::default()
337-
.show_prev_next(true)
338-
.show_first_last(true)
339-
.list_classes(vec!(String::from("pagination")))
340-
.item_classes(vec!(String::from("page-item")))
341-
.link_classes(vec!(String::from("page-link")))
342-
.active_item_classes(vec!(String::from("active")))
343-
.disabled_item_classes(vec!(String::from("disabled")));
344-
345-
let handle_page = {
346-
let page = page.clone();
347-
Callback::from(move |new_page: usize| {
348-
page.set(new_page);
349-
})
350-
};
336+
// let pagination_options = yew_custom_components::pagination::Options::default()
337+
// .show_prev_next(true)
338+
// .show_first_last(true)
339+
// .list_classes(vec!(String::from("pagination")))
340+
// .item_classes(vec!(String::from("page-item")))
341+
// .link_classes(vec!(String::from("page-link")))
342+
// .active_item_classes(vec!(String::from("active")))
343+
// .disabled_item_classes(vec!(String::from("disabled")));
344+
345+
// let handle_page = {
346+
// let page = page.clone();
347+
// Callback::from(move |new_page: usize| {
348+
// page.set(new_page);
349+
// })
350+
// };
351351

352352
html!(
353353
<>

0 commit comments

Comments
 (0)