refactor: remove obsolete SuspenseWrapper, all pages now use dedicated skeleton screens

This commit is contained in:
xfy 2026-06-03 17:33:44 +08:00
parent 62519d620d
commit 068d13c69f
2 changed files with 0 additions and 22 deletions

View File

@ -7,5 +7,4 @@ pub mod page_layout;
pub mod post;
pub mod post_card;
pub mod skeletons;
pub mod suspense_wrapper;
pub mod write_skeleton;

View File

@ -1,21 +0,0 @@
use dioxus::prelude::*;
/// Wraps children in a SuspenseBoundary with a loading skeleton fallback.
/// Used for pages that fetch data via `use_server_future`.
#[component]
pub fn SuspenseWrapper(children: Element) -> Element {
rsx! {
SuspenseBoundary {
fallback: |_| rsx! {
div { class: "animate-pulse py-6 space-y-4",
div { class: "h-10 w-3/4 bg-paper-tertiary rounded" }
div { class: "h-4 w-32 bg-paper-tertiary rounded" }
div { class: "h-4 w-full bg-paper-tertiary rounded mt-8" }
div { class: "h-4 w-full bg-paper-tertiary rounded" }
div { class: "h-4 w-2/3 bg-paper-tertiary rounded" }
}
},
{children}
}
}
}