-
Notifications
You must be signed in to change notification settings - Fork 4
Add Password Recovery #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
76b7dc8 to
33db8cd
Compare
1f51a9c to
ce7399d
Compare
|
The build failed at ./app/api/auth/[...nextauth]/route.ts:23:13 but the code in that file is exactly the same as in main. Was the Github build check changed? |
|
@blickly, can you take a look at why the build is failing now? The error logs show a type error but not sure how it was introduced. |
(Still missing logging of nametag actions)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @charansr for working on this. The key requests in my review are:
- Componentize functionalities following the ethos of React;
- Reduce repeated css / ts code by create reusable classes;
- Add relevant tests (unit tests and/or e2e tests) for the new functionalities.
| }; | ||
|
|
||
| return ( | ||
| <Container maxWidth="sm"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @charansr, can you componentize this ?
| import axios from "axios"; | ||
| import { TextField, Button, Typography, Container } from "@mui/material"; | ||
|
|
||
| const ForgotPassword: React.FC = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to create a React component for this rather than a new page?
| import axios from "axios"; | ||
| import { useSearchParams } from "next/navigation"; | ||
|
|
||
| const ResetPassword: React.FC = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment here: wouldn't it be better to componentize this function rather than making it a new page?
| <div className="flex items-center justify-center min-h-screen bg-white"> | ||
| <div className="max-w-md w-full p-6 bg-white rounded-lg"> | ||
| <h1 className="text-2xl font-semibold mb-6 text-center"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of redundant CSS here as in app/recover-password/page.tsx, please consolidate them into css classes.
No description provided.