Skip to content

Commit

Permalink
[Common] [Hotfix] 보드 링크 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
suwonthugger committed Nov 11, 2024
1 parent a2efefb commit 98afef7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/mobile/src/app/board/_components/board.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const Board = () => {
</div>

<ul className={boardListStyle}>
{data?.map(({ userId, profileImg, boardContent }, index) => (
{data?.map(({ userId, profileImg, boardContent, username }, index) => (
<li key={`${userId}-${boardContent}-${index}`}>
<Link href={`/user/${userId}`} className={boardRowStyle}>
<Link href={`/user/${username}`} className={boardRowStyle}>
<CircleImage src={profileImg} />
<p>{boardContent}</p>
</Link>
Expand Down
1 change: 1 addition & 0 deletions apps/mobile/src/shared/apis/board/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export namespace GetGuestBook {
userId: number;
profileImg: string;
boardContent: string;
username: string;
}

export type Res = GuestBookInfo[];
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/app/board/_components/board.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const Board = () => {
</div>

<ul className={boardListStyle}>
{data?.map(({ userId, profileImg, boardContent }, index) => (
{data?.map(({ userId, profileImg, boardContent, username }, index) => (
<li key={`${userId}-${boardContent}-${index}`}>
<Link href={`/user/${userId}`} className={boardRowStyle}>
<Link href={`/user/${username}`} className={boardRowStyle}>
<CircleImage src={profileImg} />
<p>{boardContent}</p>
</Link>
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/shared/apis/board/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export namespace GetGuestBook {
userId: number;
profileImg: string;
boardContent: string;
username: string;
}

export type Res = GuestBookInfo[];
Expand Down

0 comments on commit 98afef7

Please sign in to comment.