-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into hotfix/5.5
- Loading branch information
Showing
14 changed files
with
352 additions
and
130 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
// import { HTTP_ERROR_MESSAGE } from '@constants/error'; | ||
import React from 'react'; | ||
|
||
import MyPageUpdate from '@/pages/mypage/update'; | ||
|
||
export interface ErrorProps { | ||
statusCode?: number; | ||
resetError?: () => void; | ||
} | ||
|
||
const Error = ({ statusCode, resetError }: ErrorProps) => { | ||
console.log(statusCode); | ||
return ( | ||
<div className='flex flex-col justify-center items-center'> | ||
<h1>오류가 발생했습니다</h1> | ||
<h2>{statusCode}</h2> | ||
<button onClick={resetError}>다시 시도하기</button> | ||
</div> | ||
); | ||
switch (statusCode) { | ||
case 600: | ||
return <MyPageUpdate />; | ||
default: | ||
return ( | ||
<div className='flex flex-col justify-center items-center'> | ||
<h1>오류가 발생했습니다</h1> | ||
<h2>{statusCode}</h2> | ||
<button onClick={resetError}>다시 시도하기</button> | ||
</div> | ||
); | ||
} | ||
}; | ||
|
||
export default Error; |
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
Oops, something went wrong.