mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
Specify html::a
to suppress warning
This commit is contained in:
parent
8d14972808
commit
6a4cbbf266
2 changed files with 6 additions and 5 deletions
|
@ -10,7 +10,8 @@ pub extern crate tracing;
|
|||
mod components;
|
||||
mod events;
|
||||
mod helpers;
|
||||
mod html;
|
||||
#[doc(hidden)]
|
||||
pub mod html;
|
||||
mod hydration;
|
||||
mod logging;
|
||||
mod macro_helpers;
|
||||
|
|
|
@ -86,7 +86,7 @@ where
|
|||
cfg_if! {
|
||||
if #[cfg(any(feature = "csr", feature = "hydrate"))] {
|
||||
view! { cx,
|
||||
<a
|
||||
<html::a
|
||||
href=move || href.get().unwrap_or_default()
|
||||
prop:state={state.map(|s| s.to_js_value())}
|
||||
prop:replace={replace}
|
||||
|
@ -94,17 +94,17 @@ where
|
|||
class=move || class.as_ref().map(|class| class.get())
|
||||
>
|
||||
{children(cx)}
|
||||
</a>
|
||||
</html::a>
|
||||
}
|
||||
} else {
|
||||
view! { cx,
|
||||
<a
|
||||
<html::a
|
||||
href=move || href.get().unwrap_or_default()
|
||||
aria-current=move || if is_active.get() { Some("page") } else { None }
|
||||
class=move || class.as_ref().map(|class| class.get())
|
||||
>
|
||||
{children(cx)}
|
||||
</a>
|
||||
</html::a>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue