Add Password Recovery#102
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.
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"> |
| import axios from "axios"; | ||
| import { TextField, Button, Typography, Container } from "@mui/material"; | ||
|
|
||
| const ForgotPassword: React.FC = () => { |
There was a problem hiding this comment.
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.
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.
A lot of redundant CSS here as in app/recover-password/page.tsx, please consolidate them into css classes.
No description provided.