✨ push changes
This commit is contained in:
@@ -9,7 +9,7 @@ use crate::pages::blog::content::BlogEntry;
|
||||
|
||||
#[derive(Clone, Debug, Eq, PartialEq, Properties)]
|
||||
pub struct Props {
|
||||
pub seed: u32,
|
||||
pub seed: u8,
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Debug)]
|
||||
@@ -18,8 +18,8 @@ pub struct PostState {
|
||||
}
|
||||
|
||||
impl Reducible for PostState {
|
||||
type Action = u32;
|
||||
fn reduce(self: Rc<Self>, action: u32) -> Rc<Self> {
|
||||
type Action = u8;
|
||||
fn reduce(self: Rc<Self>, action: u8) -> Rc<Self> {
|
||||
Self { inner: content::Post::from_seed(action.into()), }.into()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user