diff --git a/src/components/comments/section.rs b/src/components/comments/section.rs index 0251b23..e2f25a6 100644 --- a/src/components/comments/section.rs +++ b/src/components/comments/section.rs @@ -121,7 +121,6 @@ pub fn CommentSection(post_id: i32) -> Element { rsx! { p { class: "text-paper-tertiary text-center py-8", "暂无评论,成为第一个评论的人吧!" } } - } } else { rsx! { CommentList { diff --git a/src/pages/admin/dashboard.rs b/src/pages/admin/dashboard.rs index 69d2efe..c78ff30 100644 --- a/src/pages/admin/dashboard.rs +++ b/src/pages/admin/dashboard.rs @@ -115,8 +115,7 @@ pub fn Admin() -> Element { "text-[var(--color-paper-secondary)]", "text-[var(--color-paper-primary)]", ) - } - } + }; rsx! { div { class: "text-sm font-medium {color_class}", "待审评论" } div { class: "flex items-baseline justify-between mt-4",