Skip to content

Commit

Permalink
[Common] [Hotfix] 게시판 api 변경사항 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
suwonthugger committed Nov 10, 2024
1 parent 7691f7e commit 7387ba2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
27 changes: 23 additions & 4 deletions apps/mobile/src/app/(main)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
paragraphStyle,
textCenter,
topDivStyle,
InputListPlaceholderStyle,
} from './main.css';

const MainPage = () => {
Expand Down Expand Up @@ -60,10 +61,28 @@ const MainPage = () => {

<Input
device="mobile"
variant={'search'}
placeholder={'github 아이디 검색'}
className={inputStyle}
/>
value={유저검색키워드}
onChange={handle유저검색키워드변경}
variant="search"
placeholder="github 아이디 검색"
className={inputStyle}>
<Input.List>
{filteredData?.length > 0 ? (
filteredData.map((user) => (
<Link key={user.username} href={`/user/${user.username}`}>
<Input.UserItem
userRank={user.userRank}
userName={user.username}
profileImg={user.profileImg}
userScore={user.userscore}
/>
</Link>
))
) : (
<p className={InputListPlaceholderStyle}>검색 결과가 없습니다.</p>
)}
</Input.List>
</Input>
</div>

<div className={bottomDivStyle}>
Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/src/shared/apis/board/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export const getGuestbook = async (): Promise<GetGuestBook.Res> => {
};

export const postGuestBook = async (content: string) => {
await authClient.post(BOARD_URL.POST_GUESTBOOK, content);
await authClient.post(BOARD_URL.POST_GUESTBOOK, { content });
};
2 changes: 1 addition & 1 deletion apps/web/src/shared/apis/board/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export const getGuestbook = async (): Promise<GetGuestBook.Res> => {
};

export const postGuestBook = async (content: string) => {
await authClient.post(BOARD_URL.POST_GUESTBOOK, content);
await authClient.post(BOARD_URL.POST_GUESTBOOK, { content });
};

0 comments on commit 7387ba2

Please sign in to comment.