From 87ef91a58fe06333c36e51c4e7a62050d2af1c20 Mon Sep 17 00:00:00 2001 From: hexastack Date: Wed, 19 Feb 2025 10:48:02 +0100 Subject: [PATCH] fix: address feedback --- frontend/src/app-components/auth/Register.tsx | 9 +++++---- frontend/src/types/visual-editor.types.ts | 3 +-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/app-components/auth/Register.tsx b/frontend/src/app-components/auth/Register.tsx index 61ddf240..ee34f04b 100644 --- a/frontend/src/app-components/auth/Register.tsx +++ b/frontend/src/app-components/auth/Register.tsx @@ -1,11 +1,12 @@ /* - * Copyright © 2024 Hexastack. All rights reserved. + * Copyright © 2025 Hexastack. All rights reserved. * * Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms: * 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission. * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). */ + import AbcIcon from "@mui/icons-material/Abc"; import KeyIcon from "@mui/icons-material/Key"; import KeyboardArrowRightIcon from "@mui/icons-material/KeyboardArrowRight"; @@ -53,7 +54,7 @@ export const Register = () => { const { t } = useTranslate(); const router = useRouter(); const { toast } = useToast(); - const { mutateAsync: acceptInvite, isLoading } = useAcceptInvite({ + const { mutate: acceptInvite, isLoading } = useAcceptInvite({ onError: () => { toast.error(t("message.internal_server_error")); }, @@ -108,11 +109,11 @@ export const Register = () => { }, }, }; - const onSubmitForm = async ({ + const onSubmitForm = ({ password2: _password2, ...rest }: TRegisterExtendedPayload) => { - await acceptInvite(rest); + acceptInvite(rest); }; useEffect(() => { diff --git a/frontend/src/types/visual-editor.types.ts b/frontend/src/types/visual-editor.types.ts index 8d9ce51d..4236fc21 100644 --- a/frontend/src/types/visual-editor.types.ts +++ b/frontend/src/types/visual-editor.types.ts @@ -6,7 +6,6 @@ * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). */ - import { DiagramEngine, DiagramModel, @@ -39,7 +38,7 @@ export interface IVisualEditor { } export interface IVisualEditorContext { addNode: (payload: any) => NodeModel; - createNode; + createNode: (payload: any) => void; buildDiagram: (props: IVisualEditor) => { model: DiagramModel; engine: DiagramEngine;