From 7d9a9a7def67d061b83876c4bf9a0532b2455b86 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 30 Aug 2023 14:56:23 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix(loginPage):=20improve=20code?= =?UTF-8?q?=20readability=20by=20formatting=20the=20code=20and=20breaking?= =?UTF-8?q?=20long=20lines=20=F0=9F=94=A7=20fix(types):=20fix=20formatting?= =?UTF-8?q?=20of=20the=20updated=5Fat=20property=20in=20UserInputType=20?= =?UTF-8?q?=F0=9F=94=A7=20fix(reactflowUtils):=20fix=20import=20order=20an?= =?UTF-8?q?d=20formatting=20in=20reactflowUtils.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/pages/loginPage/index.tsx | 3 ++- src/frontend/src/types/components/index.ts | 2 +- src/frontend/src/utils/reactflowUtils.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/pages/loginPage/index.tsx b/src/frontend/src/pages/loginPage/index.tsx index 14e04708b..a3ac0fbcd 100644 --- a/src/frontend/src/pages/loginPage/index.tsx +++ b/src/frontend/src/pages/loginPage/index.tsx @@ -19,7 +19,8 @@ export default function LoginPage(): JSX.Element { useState(CONTROL_LOGIN_STATE); const { password, username } = inputState; - const { login, getAuthentication, setUserData, setIsAdmin } = useContext(AuthContext); + const { login, getAuthentication, setUserData, setIsAdmin } = + useContext(AuthContext); const navigate = useNavigate(); const { setErrorData } = useContext(alertContext); diff --git a/src/frontend/src/types/components/index.ts b/src/frontend/src/types/components/index.ts index 6c9861fd9..41c6e2ab5 100644 --- a/src/frontend/src/types/components/index.ts +++ b/src/frontend/src/types/components/index.ts @@ -268,7 +268,7 @@ export type UserInputType = { is_superuser?: boolean; id?: string; create_at?: string; - updated_at?:string; + updated_at?: string; }; export type ApiKeyType = { diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index 9aec3f518..8105e759c 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -16,8 +16,8 @@ import { } from "../types/flow"; import { cleanEdgesType, - updateEdgesHandleIdsType, unselectAllNodesType, + updateEdgesHandleIdsType, } from "../types/utils/reactflowUtils"; import { toNormalCase } from "./utils";