Leptos updated to 0.5
This commit is contained in:
+7
-8
@@ -6,13 +6,12 @@ use crate::pages::home_page::HomePage;
|
||||
use crate::pages::settings::Settings;
|
||||
|
||||
#[component]
|
||||
pub fn App(cx: Scope) -> impl IntoView {
|
||||
pub fn App() -> impl IntoView {
|
||||
// Provides context that manages stylesheets, titles, meta tags, etc.
|
||||
provide_meta_context(cx);
|
||||
//provide_context(cx, DialogOpener::new(cx));
|
||||
provide_meta_context();
|
||||
//provide_context(DialogOpener::new());
|
||||
|
||||
view! {
|
||||
cx,
|
||||
<Html
|
||||
lang="cz"
|
||||
dir="ltr"
|
||||
@@ -61,7 +60,7 @@ pub fn App(cx: Scope) -> impl IntoView {
|
||||
<li class="menu-item">
|
||||
<a href="/" class="menu-link">
|
||||
<i class="menu-icon tf-icons bx bx-home-circle"></i>
|
||||
<div data-i18n="Analytics">{trl(cx, "Dashboard")}</div>
|
||||
<div data-i18n="Analytics">{trl("Dashboard")}</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class="menu-item">
|
||||
@@ -173,8 +172,8 @@ pub fn App(cx: Scope) -> impl IntoView {
|
||||
<Router>
|
||||
<main>
|
||||
<Routes>
|
||||
<Route path="" view=|cx| view! { cx, <HomePage/> }/>
|
||||
<Route path="settings" view=|cx| view! { cx, <Settings/> }/>
|
||||
<Route path="" view=|| view! { <HomePage/> }/>
|
||||
<Route path="settings" view=|| view! { <Settings/> }/>
|
||||
</Routes>
|
||||
</main>
|
||||
</Router>
|
||||
@@ -212,7 +211,7 @@ pub fn App(cx: Scope) -> impl IntoView {
|
||||
<Router>
|
||||
<main>
|
||||
<Routes>
|
||||
<Route path="" view=|cx| view! { cx, <HomePage/> }/>
|
||||
<Route path="" view=|| view! { <HomePage/> }/>
|
||||
</Routes>
|
||||
</main>
|
||||
</Router>
|
||||
|
||||
Reference in New Issue
Block a user