Skip to content

Commit

Permalink
suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed May 6, 2024
1 parent c7ad06f commit a6e09dc
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/Components/Auth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import ReactMarkdown from "react-markdown";
import rehypeRaw from "rehype-raw";
import { useAuthContext } from "../../Common/hooks/useAuthUser";
import FiltersCache from "../../Utils/FiltersCache";
import { classNames } from "../../Utils/utils";

export const Login = (props: { forgot?: boolean }) => {
const { signIn } = useAuthContext();
Expand Down Expand Up @@ -276,9 +277,10 @@ export const Login = (props: { forgot?: boolean }) => {

<div className="relative flex h-full w-full items-center">
<div
className={
"w-full transition-all " + (!forgotPassword ? "" : "hidden")
}
className={classNames(
"w-full transition-all",
forgotPassword && "hidden",
)}
>
<div className="mb-8 w-[300px] text-4xl font-black text-primary-600">
{t("auth_login_title")}
Expand Down Expand Up @@ -350,9 +352,10 @@ export const Login = (props: { forgot?: boolean }) => {
</div>

<div
className={
"w-full transition-all " + (forgotPassword ? "" : "hidden")
}
className={classNames(
"w-full transition-all",
!forgotPassword && "hidden",
)}
>
<button
onClick={() => {
Expand Down

0 comments on commit a6e09dc

Please sign in to comment.