From b18a91deb09cb04ee1adf30768f53680ff6ed5bb Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Thu, 21 Sep 2023 19:09:32 -0300 Subject: [PATCH] code format --- src/frontend/src/modals/ApiModal/index.tsx | 18 ++++++++++++++---- src/frontend/src/pages/signUpPage/index.tsx | 2 +- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/frontend/src/modals/ApiModal/index.tsx b/src/frontend/src/modals/ApiModal/index.tsx index 0d4a8647d..e2ffa00ca 100644 --- a/src/frontend/src/modals/ApiModal/index.tsx +++ b/src/frontend/src/modals/ApiModal/index.tsx @@ -14,6 +14,7 @@ import { import CodeTabsComponent from "../../components/codeTabsComponent"; import IconComponent from "../../components/genericIconComponent"; import { EXPORT_CODE_DIALOG } from "../../constants/constants"; +import { AuthContext } from "../../contexts/authContext"; import { TabsContext } from "../../contexts/tabsContext"; import { TemplateVariableType } from "../../types/api"; import { tweakType, uniqueTweakType } from "../../types/components"; @@ -27,7 +28,6 @@ import { tabsArray, } from "../../utils/utils"; import BaseModal from "../baseModal"; -import { AuthContext } from "../../contexts/authContext"; const ApiModal = forwardRef( ( @@ -46,7 +46,12 @@ const ApiModal = forwardRef( const tweak = useRef([]); const tweaksList = useRef([]); const { setTweak, getTweak, tabsState } = useContext(TabsContext); - const pythonApiCode = getPythonApiCode(flow, autoLogin, tweak.current, tabsState); + const pythonApiCode = getPythonApiCode( + flow, + autoLogin, + tweak.current, + tabsState + ); const curl_code = getCurlCode(flow, autoLogin, tweak.current, tabsState); const pythonCode = getPythonCode(flow, tweak.current, tabsState); const widgetCode = getWidgetCode(flow, autoLogin, tabsState); @@ -152,10 +157,15 @@ const ApiModal = forwardRef( tweak.current.push(newTweak); } - const pythonApiCode = getPythonApiCode(flow, autoLogin ,tweak.current, tabsState); + const pythonApiCode = getPythonApiCode( + flow, + autoLogin, + tweak.current, + tabsState + ); const curl_code = getCurlCode(flow, autoLogin, tweak.current, tabsState); const pythonCode = getPythonCode(flow, tweak.current, tabsState); - const widgetCode = getWidgetCode(flow, autoLogin,tabsState); + const widgetCode = getWidgetCode(flow, autoLogin, tabsState); tabs![0].code = curl_code; tabs![1].code = pythonApiCode; diff --git a/src/frontend/src/pages/signUpPage/index.tsx b/src/frontend/src/pages/signUpPage/index.tsx index b151ff023..d153dc522 100644 --- a/src/frontend/src/pages/signUpPage/index.tsx +++ b/src/frontend/src/pages/signUpPage/index.tsx @@ -20,7 +20,7 @@ export default function SignUp(): JSX.Element { const [inputState, setInputState] = useState(CONTROL_INPUT_STATE); - const [isDisabled, setDisableBtn] = useState(true) + const [isDisabled, setDisableBtn] = useState(true); const { password, cnfPassword, username } = inputState; const { setErrorData, setSuccessData } = useContext(alertContext);