Skip to content

Commit 3ac93d0

Browse files
committed
feat: 마이페이지의 캐릭터에서 상세 정보 페이지로 넘어가는 로직 추가
1 parent fd053d0 commit 3ac93d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/MyPage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function HomePage() {
7171
</div>
7272
)}
7373
{character ? (
74-
<div className={styles.characterDetails}>
74+
<div className={styles.characterDetails} onClick={() => window.location.href = `http://localhost:3000/character/${character.name}`}>
7575
<h1 className={`h1_5 ${styles.characterHeader}`}>내 캐릭터 정보</h1>
7676
<img src={character.characterImage} alt="캐릭터 이미지" className={styles.characterImage}/>
7777
<div>

0 commit comments

Comments
 (0)