push changes

This commit is contained in:
lia
2025-08-14 15:19:35 +02:00
parent 078634b664
commit 510897d94b
14 changed files with 442 additions and 420 deletions

View File

@@ -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()
}
}