-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ✨ #234 - URL query로부터 데이터 획득 * ✨ #234 - 비밀번호 재설정 API_PATH 추가 * ✨ #234 - 비밀번호 재설정 API 추가 * ✨ #234 - 비밀번호 재설정 API 연결 * ✨#234 - queryParam을 항상 string[]로 반환하는 util 함수 추가 * 🎨:#234 - getQueryParam 통해 query param 가져오도록 변경 * 🏷️:#234 - TempTokenValidation response, request 타입 추가 * ✨:#234 - tempTokenValidation api path 추가 * ✨:#234 - tempTokenValidation api 추가 * ✨:#234 - 비밀번호 재설정 페이지 접근 전 email과 token이 매칭되지 확인 * ♻️#234 - api import 방식 변경 * 💡#234 - 주석 추가 * 🎨#234 - 네이밍 및 구조 개선 * 🔧#234 - eslint @typescript-eslint/strict-boolean-expressions rule 추가 * 🏷️#234 - InferGetServerSidePropsType 적용 * 🏷️#234 axios 응답 타입 적용
- Loading branch information
Showing
9 changed files
with
143 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from './date'; | ||
export * from './ErrorResponseMessage'; | ||
export * from './Formatter'; | ||
export * from './query'; | ||
export { default as textareaAutosize } from './TextareaAutosize'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* 쿼리 파라미터를 받아 항상 문자열 배열로 반환합니다. | ||
*/ | ||
export const getQueryParams = ( | ||
param: string | string[] | undefined, | ||
): string[] => { | ||
if (Array.isArray(param)) { | ||
return param; | ||
} | ||
|
||
if (param === undefined || param === '') { | ||
return []; | ||
} | ||
|
||
return [param]; | ||
}; |