MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus-components / BlockNotifications

Function BlockNotifications

preview/src/main.rs:1381–1394  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1379
1380#[component]
1381fn BlockNotifications() -> Element {
1382 rsx! {
1383 div { style: "display: grid; gap: 0.3rem; margin-bottom: 1rem;",
1384 h3 { style: "margin: 0; font-size: 1rem; font-weight: 660; color: var(--secondary-color-3);", "Notifications" }
1385 p { style: "margin: 0; color: var(--secondary-color-5); font-size: 0.85rem;", "Pick what we ping you about." }
1386 }
1387 div { style: "display: grid; gap: 0.95rem;",
1388 NotificationRow { id: "blk-notif-comments", name: "Comments", description: "Replies on your posts", default_on: true }
1389 NotificationRow { id: "blk-notif-mentions", name: "Mentions", description: "When someone @'s you", default_on: true }
1390 NotificationRow { id: "blk-notif-weekly", name: "Weekly digest", description: "A Monday morning recap", default_on: false }
1391 NotificationRow { id: "blk-notif-updates", name: "Product updates", description: "New features and releases", default_on: false }
1392 }
1393 }
1394}
1395
1396#[component]
1397fn NotificationRow(id: String, name: String, description: String, default_on: bool) -> Element {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected