Skip to content

Commit

Permalink
feat: 결제 완료 페이지에서 마이페이지로 이동하도록 수정 (#433)
Browse files Browse the repository at this point in the history
* fix: Link에 replace 속성 추가

* style: 파일명 오타 수정

* feat: 결제 완료 페이지에서 마이페이지로 이동하도록 수정

---------

Co-authored-by: Sejin Cha <[email protected]>
  • Loading branch information
bbearcookie and chasj0326 authored Dec 2, 2023
1 parent 4af6cea commit 8c2d619
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/core/routes/privateRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import ParticipateLogPage from '@/pages/ParticipateLogPage';
import OrderLogPage from '@/pages/OrderLogPage';
import StorePage from '@/pages/StorePage';
import MyBirdPage from '@/pages/MyBirdPage';
import PurchaseSuccessPage from '@/pages/PurchaseSuccesPage';
import PurchaseSuccessPage from '@/pages/PurchaseSuccessPage';
import PurchaseFailPage from '@/pages/PurchaseFailPage';
import { Route } from './types/route';

Expand Down
7 changes: 5 additions & 2 deletions src/pages/PurchaseFailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ const PurchaseFailPage = () => {
<h1 className="mb-2 text-3xl font-semibold">결제 실패</h1>
<h3 className="text-lg text-dark-gray">무언가 잘못 되었습니다..</h3>
</div>
<Link to={'/store'}>
<Link
to="/user"
replace={true}
>
<button className="btn btn-light-point dark:btn-dark-point rounded-lg font-semibold">
상점으로 돌아가기
마이페이지로 이동
</button>
</Link>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ const PurchaseSuccessPage = () => {
<div className="my-5">
<h1 className="mb-2 text-3xl font-semibold">결제 성공!</h1>
</div>
<Link to="/store">
<Link
to="/user"
replace={true}
>
<button className="btn btn-light-point dark:btn-dark-point rounded-lg font-semibold">
상점으로 돌아가기
마이페이지로 이동
</button>
</Link>
</div>
Expand Down

0 comments on commit 8c2d619

Please sign in to comment.