✨ readd btns
🐛 fixed some blog stuff
This commit is contained in:
@@ -7,24 +7,24 @@ use crate::pages::blog::authorcard::AuthorCard;
|
||||
}*/
|
||||
|
||||
pub struct Authors {
|
||||
seeds: Vec<u8>,
|
||||
ids: Vec<u8>,
|
||||
}
|
||||
impl Component for Authors {
|
||||
type Message = (); //Msg;
|
||||
type Properties = ();
|
||||
|
||||
fn create(_ctx: &Context<Self>) -> Self {
|
||||
Self { seeds: vec![0], }
|
||||
Self { ids: vec![0], }
|
||||
}
|
||||
|
||||
/*fn update(&mut self, _ctx: &Context<Self>, msg: Self::Message) -> bool {
|
||||
match msg { Msg::NextAuthors => { self.seeds = vec![0]; true } }
|
||||
match msg { Msg::NextAuthors => { self.ids = vec![0]; true } }
|
||||
}*/
|
||||
|
||||
fn view(&self, _: &Context<Self>) -> Html {
|
||||
html! {
|
||||
{ for self.seeds.iter().map(|&seed| { html! {
|
||||
<AuthorCard {seed} />
|
||||
{ for self.ids.iter().map(|&id| { html! {
|
||||
<AuthorCard {id} />
|
||||
} }) }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user