added pagination controls
All checks were successful
Build and Push Image / build-and-push (push) Successful in 4m33s
All checks were successful
Build and Push Image / build-and-push (push) Successful in 4m33s
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
use dioxus::prelude::*;
|
||||
|
||||
#[component]
|
||||
pub fn Search(query: Signal<String>) -> Element {
|
||||
pub fn Search(query: Signal<String>, page: Signal<i32>) -> Element {
|
||||
rsx! {
|
||||
div { class: "searchBar stickyTop",
|
||||
input {
|
||||
r#type: "search",
|
||||
placeholder: "Search Files",
|
||||
value: query,
|
||||
oninput: move |event| query.set(event.value()),
|
||||
oninput: move |event| {query.set(event.value()); page.set(1);},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user