mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
chore: clean up example a bit
This commit is contained in:
parent
4d965c8571
commit
b57987cfb1
1 changed files with 2 additions and 5 deletions
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
use dioxus::events::*;
|
use dioxus::events::*;
|
||||||
use dioxus::prelude::*;
|
use dioxus::prelude::*;
|
||||||
use dioxus::router::{use_router, Link, Route, Router};
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
dioxus::desktop::launch(app);
|
dioxus::desktop::launch(app);
|
||||||
|
@ -23,12 +22,10 @@ fn app(cx: Scope) -> Element {
|
||||||
|
|
||||||
match resp {
|
match resp {
|
||||||
// Parse data from here, such as storing a response token
|
// Parse data from here, such as storing a response token
|
||||||
Ok(_data) => {
|
Ok(_data) => println!("Login successful"),
|
||||||
println!("Login successful");
|
|
||||||
}
|
|
||||||
|
|
||||||
//Handle any errors from the fetch here
|
//Handle any errors from the fetch here
|
||||||
Err(_err) => {}
|
Err(_err) => println!("Login failed"),
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue