-
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.
Merge pull request #249 from boostcampwm2023/feat/blockSignup
feat : 외부 signup 페이지 접근 제한 코드 작성
- Loading branch information
Showing
7 changed files
with
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const ERROR_MESSAGE = { | ||
NOT_PERMITTED: "허용되지 않는 접근입니다.", | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { FallbackProps } from "react-error-boundary"; | ||
import { useNavigate } from "react-router-dom"; | ||
import { ROUTER_URL } from "../../constants/path"; | ||
|
||
const NotPermittedPage = ({ error, resetErrorBoundary }: FallbackProps) => { | ||
const navigate = useNavigate(); | ||
const redirectTempPage = () => { | ||
resetErrorBoundary(); | ||
navigate(ROUTER_URL.TEMP); | ||
}; | ||
return ( | ||
<div> | ||
<p>Error 발생</p> | ||
<p>error : {error.message}</p> | ||
<button onClick={redirectTempPage} className="hover:underline"> | ||
Temp Page로 이동 | ||
</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NotPermittedPage; |