diff --git a/packages/dashboard-v2/src/components/DropdownMenu/DropdownMenu.js b/packages/dashboard-v2/src/components/DropdownMenu/DropdownMenu.js index 86cbad5f..1bf6f001 100644 --- a/packages/dashboard-v2/src/components/DropdownMenu/DropdownMenu.js +++ b/packages/dashboard-v2/src/components/DropdownMenu/DropdownMenu.js @@ -7,13 +7,10 @@ import { ChevronDownIcon } from "../Icons"; const dropDown = keyframes` 0% { - transform: scaleY(0); - } - 80% { - transform: scaleY(1.1); + transform: rotateX(-90deg); } 100% { - transform: scaleY(1); + transform: rotateX(0deg); } `; @@ -35,10 +32,11 @@ const Flyout = styled.div.attrs(({ open }) => ({ bg-white shadow-md shadow-palette-200/50 ${open ? "visible" : "invisible"}`, }))` + transform-origin: top center; animation: ${({ open }) => open ? css` - ${dropDown} 0.1s ease-in-out + ${dropDown} .15s ease-in-out forwards; ` : "none"}; `; diff --git a/packages/dashboard-v2/src/components/forms/LoginForm.js b/packages/dashboard-v2/src/components/forms/LoginForm.js index a5a1deeb..eeafc092 100644 --- a/packages/dashboard-v2/src/components/forms/LoginForm.js +++ b/packages/dashboard-v2/src/components/forms/LoginForm.js @@ -82,7 +82,7 @@ export const LoginForm = ({ onSuccess }) => {
- Don't have an account?
+ Already have an account?
Please check your inbox and confirm your email address.
You will be redirected to your dashboard shortly.
- Already have an account?
Please check your inbox for further instructions.
- )} + {state === State.Success && ( +Please check your inbox for further instructions.
+ )} - {state === State.Failure && ( -Something went wrong, please try again later.
- )} + {state === State.Failure && ( +Something went wrong, please try again later.
+ )} -
- Suddenly remembered your password?
- Don't actually have an account?
+ Suddenly remembered your password?
+ Don't actually have an account?
Please wait while we verify your account...
} +Please wait while we verify your account...
} - {state === State.Success && ( - <> -All done!
-You will be redirected to your dashboard shortly.
-All done!
+You will be redirected to your dashboard shortly.
+Something went wrong, please try again later.
} -Something went wrong, please try again later.
}- All done! You will be redirected to your dashboard shortly. -
- )} - - {state === State.Failure && ( -Something went wrong, please try again later.
- )} - -
- Suddenly remembered your old password?
+ All done! You will be redirected to your dashboard shortly.
-Something went wrong, please try again later.
+ )} + +
+ Suddenly remembered your old password?