feat: update to newest leptos

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-10-20 23:06:21 +02:00
parent 8ee2ca5c14
commit a7986e304c
15 changed files with 733 additions and 831 deletions

View File

@@ -5,9 +5,8 @@ use crate::features::navbar_projects::gen::queries::get_projects_list_view::GetP
use crate::features::navbar_projects::NavbarProjectsView;
#[component]
pub fn FeaturesView(cx: Scope) -> impl IntoView {
pub fn FeaturesView() -> impl IntoView {
let projects = create_local_resource(
cx,
|| (),
|_| async {
vec![
@@ -24,9 +23,9 @@ pub fn FeaturesView(cx: Scope) -> impl IntoView {
);
let emptyProjects: Resource<(), Vec<GetProjectsListViewGetProjects>> =
create_local_resource(cx, || (), |_| async { Vec::new() });
create_local_resource(|| (), |_| async { Vec::new() });
view! { cx,
view! {
<div>
<div class="space-y-5 p-2">
<h1>"NavbarProjects"</h1>