refactor: make the project form component handle the server calls itself

This commit is contained in:
2024-08-18 21:17:31 +02:00
parent ce7dafb576
commit 9324d841fb
5 changed files with 27 additions and 21 deletions

View File

@ -7,6 +7,11 @@ use diesel::{RunQueryDsl, SelectableHelper};
use dioxus::prelude::*;
use validator::Validate;
#[server]
pub(crate) async fn testing(input: i32) -> Result<i32, ServerFnError> {
Ok(input + 1)
}
#[server]
pub(crate) async fn create_project(
new_project: NewProject,