mirror of
https://github.com/hexastack/hexabot
synced 2025-05-05 21:34:41 +00:00
fix: address feedback
This commit is contained in:
parent
19ae57f019
commit
87ef91a58f
@ -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:
|
* 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.
|
* 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).
|
* 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 AbcIcon from "@mui/icons-material/Abc";
|
||||||
import KeyIcon from "@mui/icons-material/Key";
|
import KeyIcon from "@mui/icons-material/Key";
|
||||||
import KeyboardArrowRightIcon from "@mui/icons-material/KeyboardArrowRight";
|
import KeyboardArrowRightIcon from "@mui/icons-material/KeyboardArrowRight";
|
||||||
@ -53,7 +54,7 @@ export const Register = () => {
|
|||||||
const { t } = useTranslate();
|
const { t } = useTranslate();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { toast } = useToast();
|
const { toast } = useToast();
|
||||||
const { mutateAsync: acceptInvite, isLoading } = useAcceptInvite({
|
const { mutate: acceptInvite, isLoading } = useAcceptInvite({
|
||||||
onError: () => {
|
onError: () => {
|
||||||
toast.error(t("message.internal_server_error"));
|
toast.error(t("message.internal_server_error"));
|
||||||
},
|
},
|
||||||
@ -108,11 +109,11 @@ export const Register = () => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const onSubmitForm = async ({
|
const onSubmitForm = ({
|
||||||
password2: _password2,
|
password2: _password2,
|
||||||
...rest
|
...rest
|
||||||
}: TRegisterExtendedPayload) => {
|
}: TRegisterExtendedPayload) => {
|
||||||
await acceptInvite(rest);
|
acceptInvite(rest);
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -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).
|
* 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 {
|
import {
|
||||||
DiagramEngine,
|
DiagramEngine,
|
||||||
DiagramModel,
|
DiagramModel,
|
||||||
@ -39,7 +38,7 @@ export interface IVisualEditor {
|
|||||||
}
|
}
|
||||||
export interface IVisualEditorContext {
|
export interface IVisualEditorContext {
|
||||||
addNode: (payload: any) => NodeModel;
|
addNode: (payload: any) => NodeModel;
|
||||||
createNode;
|
createNode: (payload: any) => void;
|
||||||
buildDiagram: (props: IVisualEditor) => {
|
buildDiagram: (props: IVisualEditor) => {
|
||||||
model: DiagramModel<DiagramModelGenerics>;
|
model: DiagramModel<DiagramModelGenerics>;
|
||||||
engine: DiagramEngine;
|
engine: DiagramEngine;
|
||||||
|
Loading…
Reference in New Issue
Block a user