feat: add headers to nav list
This commit is contained in:
1 parent
aa912673c0
commit
12a980f327
2 files changed
+46
-7
No files matched your search
@@ -6,16 +6,25 @@ pub fn AdminProviderPage() -> impl IntoView {
|
||||
let selected_items = RwSignal::new(Vec::new());
|
||||
let provider_list = RwSignal::new(vec![
|
||||
NavListInfo {
|
||||
text: "Testing 1".to_string(),
|
||||
text: vec!["Testing 1".to_string(), 3.to_string(), 500.to_string()],
|
||||
id: "1".to_string(),
|
||||
slug: "1".to_string(),
|
||||
},
|
||||
NavListInfo {
|
||||
text: "Testing 2".to_string(),
|
||||
text: vec!["Testing 2".to_string(), 2.to_string(), 1000.to_string()],
|
||||
id: "2".to_string(),
|
||||
slug: "2".to_string(),
|
||||
}
|
||||
]);
|
||||
|
||||
let headers = vec![
|
||||
"Scholarship Name",
|
||||
"Number of Awards",
|
||||
"Amount of Awards"
|
||||
]
|
||||
.iter()
|
||||
.map(|s| s.to_string())
|
||||
.collect::<Vec<String>>();
|
||||
|
||||
view! {
|
||||
<div class="flex flex-1 flex-col gap-4 items-stretch mt-4">
|
||||
@@ -24,6 +33,7 @@ pub fn AdminProviderPage() -> impl IntoView {
|
||||
selected=selected_items
|
||||
name="providers-nav-list"
|
||||
items=provider_list
|
||||
headers=headers
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user