fix CI
This commit is contained in:
1 parent
577f99e68c
commit
a9307e57e6
23 files changed
+160
-164
No files matched your search
@@ -34,7 +34,7 @@ where
|
||||
render! {
|
||||
h1 { "App" }
|
||||
GenericRouter::<R> {
|
||||
config: || RouterConfiguration::default().history(MemoryHistory::default())
|
||||
config: || RouterConfig::default().history(MemoryHistory::default())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,8 +39,8 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
|
||||
h1 { "App" }
|
||||
Router {
|
||||
config: {
|
||||
let path = cx.props.path.clone();
|
||||
move || RouterConfiguration::default().history(MemoryHistory::with_initial_path(path).unwrap())
|
||||
let path = cx.props.path.parse().unwrap();
|
||||
move || RouterConfig::default().history(MemoryHistory::with_initial_path(path))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +1,15 @@
|
||||
#![cfg(feature = "wasm_test")]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_router::prelude::*;
|
||||
use gloo::utils::document;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::str::FromStr;
|
||||
use wasm_bindgen_test::*;
|
||||
|
||||
wasm_bindgen_test_configure!(run_in_browser);
|
||||
|
||||
#[rustfmt::skip]
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Routable)]
|
||||
#[derive(Clone, Debug, PartialEq, Routable)]
|
||||
enum Route {
|
||||
#[route("/")]
|
||||
Home {},
|
||||
@@ -25,12 +21,7 @@ enum Route {
|
||||
}
|
||||
|
||||
fn App(cx: Scope) -> Element {
|
||||
render!(Router {
|
||||
config: RouterConfiguration {
|
||||
history: Box::<WebHistory<Route>>::default(),
|
||||
..Default::default()
|
||||
}
|
||||
})
|
||||
render!(Router {})
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
|
||||
Reference in new issue
Block a user