mirror of
https://github.com/colanode/colanode.git
synced 2025-12-23 15:09:27 +01:00
Refactor functions for consistency
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user