diff --git a/src/components/animate/index.tsx b/src/components/animate/index.tsx index 0e3348f..3bb21eb 100644 --- a/src/components/animate/index.tsx +++ b/src/components/animate/index.tsx @@ -5,7 +5,7 @@ function AnimateOnShow({ children, initial = -20, exit = -20, - duration = 0.3, + duration = 0.5, }: { children: ReactNode; initial?: number; @@ -14,10 +14,11 @@ function AnimateOnShow({ }) { return ( {children} diff --git a/src/window/settings/accountForm.tsx b/src/window/settings/accountForm.tsx index 65ee232..ff9ffb2 100644 --- a/src/window/settings/accountForm.tsx +++ b/src/window/settings/accountForm.tsx @@ -23,6 +23,7 @@ import { getAdvancedValidation } from "src/api"; import Switch from "src/imgs/icons/Switch.svg"; import Trash from "src/imgs/icons/Trash.svg"; import invalid from "src/imgs/icons/invalid.svg"; +import AnimateOnShow from "src/components/animate"; function AccountForm({ closeForm, @@ -217,70 +218,72 @@ function AccountForm({ /> {showAdvanced && ( - - - Jambonz API Server Base URL - setApiServer(e.target.value)} - /> - - - Jambonz Account Sid - setAccountSid(e.target.value)} - /> - - - API Key - - + + + + Jambonz API Server Base URL + setApiServer(e.target.value)} + /> + + + Jambonz Account Sid + setAccountSid(e.target.value)} + /> + + + API Key + + - {isAdvancedMode && ( - - - {isCredentialOk - ? "Credentials are valid" - : "We cant verify your credentials"} - - {isCredentialOk ? ( - - ) : ( - - + {isCredentialOk + ? "Credentials are valid" + : "We cant verify your credentials"} + + {isCredentialOk ? ( + - - )} - - )} - + ) : ( + + + + )} + + )} + + )}