Refactor functions for consistency

This commit is contained in:
Hakan Shehu
2024-08-01 16:30:10 +02:00
parent 741cbfe571
commit 4895c32aca
17 changed files with 38 additions and 42 deletions

View File

@@ -44,12 +44,12 @@ export const SpaceCreateDialog = ({
},
});
function handleCancel(){
const handleCancel = () => {
form.reset();
onOpenChange(false);
}
async function handleSubmit(values: z.infer<typeof formSchema>) {
const handleSubmit = async (values: z.infer<typeof formSchema>) => {
setIsPending(true);
const node: Node = {