Skip to content

Commit

Permalink
refactor: ProfileData 타입 import하여 사용하기
Browse files Browse the repository at this point in the history
  • Loading branch information
chlwlstlf committed Dec 7, 2024
1 parent ee382bb commit 5e93f7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Icon from "@/components/common/icon/Icon";
import Profile from "@/components/common/profile/Profile";
import * as S from "@/components/profile/profileCard/ProfileCard.style";
import { ProfileData } from "@/@types/profile";
import { HoverStyledLink } from "@/styles/common";

const ProfileCard = (profileData: ProfileData) => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/utils/roomMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BaseRoomInfo, RoomCreateRequest, RoomDetailResponse, RoomInfo } from "@

// RoomDetailResponse를 RoomInfo로 변환
export const mapRoomDetailResponseToRoomInfo = (response: RoomDetailResponse): RoomInfo => ({
roomId: response.roomInfoResponse.roomId,
id: response.roomInfoResponse.roomId,
title: response.roomInfoResponse.title,
content: response.roomInfoResponse.content,
repositoryLink: response.repositoryResponse.repositoryLink,
Expand Down

0 comments on commit 5e93f7f

Please sign in to comment.