fix: address feedback

This commit is contained in:
hexastack 2025-02-19 10:48:02 +01:00
parent 19ae57f019
commit 87ef91a58f
2 changed files with 6 additions and 6 deletions

View File

@ -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(() => {

View File

@ -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<DiagramModelGenerics>;
engine: DiagramEngine;