Add manual feed subscription #3
4 changed files with 11 additions and 3 deletions
|
|
@ -60,7 +60,9 @@ fn SubscribeForm(on_subscribed: EventHandler<()>) -> Element {
|
|||
status.set(None);
|
||||
match subscribe_feed(feed_url).await {
|
||||
Ok(count) => {
|
||||
status.set(Some(Ok(format!("Subscribed — pulled in {count} article(s)."))));
|
||||
status.set(Some(Ok(format!(
|
||||
"Subscribed — pulled in {count} article(s)."
|
||||
))));
|
||||
url.set(String::new());
|
||||
on_subscribed.call(());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,11 @@ use dioxus_primitives::merge_attributes;
|
|||
#[css_module("/src/components/button/style.css")]
|
||||
struct Styles;
|
||||
|
||||
// Variants beyond the ones this app currently uses are part of the
|
||||
// component library's public API, not unused code — CI runs clippy with
|
||||
// `-D warnings`, which would otherwise turn this dead_code lint into a
|
||||
// build failure.
|
||||
#[allow(dead_code)]
|
||||
#[derive(Copy, Clone, PartialEq, Default)]
|
||||
#[non_exhaustive]
|
||||
pub enum ButtonVariant {
|
||||
|
|
@ -30,6 +35,7 @@ impl ButtonVariant {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Copy, Clone, PartialEq, Default)]
|
||||
#[non_exhaustive]
|
||||
pub enum ButtonSize {
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
mod component;
|
||||
pub use component::*;
|
||||
pub use component::*;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
mod component;
|
||||
pub use component::*;
|
||||
pub use component::*;
|
||||
|
|
|
|||
Loading…
Reference in a new issue