general cleanup
This commit is contained in:
1 parent
09cabe4e8b
commit
ece8f0fb22
15 files changed
+155
-767
No files matched your search
@@ -101,7 +101,7 @@ fn href_external() {
|
||||
fn Root(cx: Scope) -> Element {
|
||||
render! {
|
||||
Link {
|
||||
target: "https://dioxuslabs.com/",
|
||||
target: NavigationTarget::External("https://dioxuslabs.com/".into()),
|
||||
"Link"
|
||||
}
|
||||
}
|
||||
@@ -171,7 +171,7 @@ fn with_active_class_active() {
|
||||
fn Root(cx: Scope) -> Element {
|
||||
render! {
|
||||
Link {
|
||||
target: "/",
|
||||
target: Route::Root {},
|
||||
active_class: "active_class",
|
||||
class: "test_class",
|
||||
"Link"
|
||||
@@ -322,7 +322,7 @@ fn with_new_tab_external() {
|
||||
fn Root(cx: Scope) -> Element {
|
||||
render! {
|
||||
Link {
|
||||
target: "https://dioxuslabs.com/",
|
||||
target: NavigationTarget::External("https://dioxuslabs.com/".into()),
|
||||
new_tab: true,
|
||||
"Link"
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#![allow(non_snake_case, unused)]
|
||||
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_router::{history::MemoryHistory, prelude::*};
|
||||
use dioxus_router::prelude::*;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
fn prepare(path: impl Into<String>) -> VirtualDom {
|
||||
|
||||
Reference in new issue
Block a user