-
Notifications
You must be signed in to change notification settings - Fork 35
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
[장용한] Sprint11 #317
The head ref may contain hidden characters: "React-\uC7A5\uC6A9\uD55C-sprint11"
[장용한] Sprint11 #317
Conversation
@@ -0,0 +1,46 @@ | |||
import axios from "axios"; | |||
|
|||
interface valuetype { |
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.
valueType
보다 어떤 value
인지 좀 더 명확하게 해주시면 좋을 것 같아요 !
|
||
export const postAuthSignIn = async (body: valuetype) => { | ||
try { | ||
const res = await axios.post(`${apiUrl}/auth/signIn`, body, { |
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.
이런 부분은 axios instance
로 미리 설정 할 수 있겠죠 !
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.
https://nextjs.org/docs/pages/building-your-application/routing/pages-and-layouts
nextjs layout을 이용해서 조건부 렌더링보다는 nextjs 스러운 방식으로 Header를 구성해보시는게 어떨 까요?
const instance = axios.create({ | ||
baseURL: process.env.NEXT_PUBLIC_API_BASE_URL, | ||
withCredentials: true, | ||
}); |
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.
instance
Good ! 입니다.
const [value, setValue] = useState<valuetype>(INITIAL_VALUES); | ||
const navigate = useNavigate(); | ||
|
||
const mutation = useMutation({ |
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.
이것도 네이밍을 mutation
보다는 어떤 일을 하는지 좀 더 명확하게 네이밍을 하시면 좋을 것 같아요 !
</button> | ||
</form> | ||
<div className={style.easylogin}> | ||
간편 로그인하기 |
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.
p
태그로 감사주시면 좋을 것 같아요.
요구사항
기본
회원가입
로그인
메인
멘토에게