{props.introduce}
+{props.introduce}
} > ); }; diff --git a/src/frontend/src/components/common/ProfileDetail/index.css.ts b/src/frontend/src/components/common/ProfileDetail/index.css.ts index 5221e149..b2366f5e 100644 --- a/src/frontend/src/components/common/ProfileDetail/index.css.ts +++ b/src/frontend/src/components/common/ProfileDetail/index.css.ts @@ -5,7 +5,7 @@ export const Container = styled.div` background-color: white; border-radius: 10px; padding: 10px; - box-shadow: 10px 10px 40px 0px #00000040; + box-shadow: var(--palette-elevation-shadow-heavy); display: flex; flex-direction: column; `; diff --git a/src/frontend/src/components/common/ProfileDetail/index.tsx b/src/frontend/src/components/common/ProfileDetail/index.tsx index 37c14ba2..053142e5 100644 --- a/src/frontend/src/components/common/ProfileDetail/index.tsx +++ b/src/frontend/src/components/common/ProfileDetail/index.tsx @@ -4,20 +4,26 @@ import { ProfileActions } from './ProfileActions'; import { Container, Profile, ButtonContainer } from './index.css'; import { ProfileDetailDto } from '@/types/dto/ProfileDetailDto.dto'; import DefaultProfile from '@/assets/img/DefaultProfile.svg'; - -const detailProfile = { - nickname: '이노', - introduce: '저는 이제 집으로 갑니다', - imgUrl: - 'https://search.pstatic.net/common/?src=http%3A%2F%2Fblogfiles.naver.net%2FMjAyMDA3MjVfMTQ5%2FMDAxNTk1Njc4MzEyNzA4.knqIC64twrLoZDviHrAUSrEbgtxNp8h4nGsT-4mrWgkg.VImfsqV3F5GqyCPCIN4Xfid4TpUXQkljevfhuX_HK4gg.JPEG.haha9558%2FIMG_0114.JPG&type=a340', -}; +import { useEffect, useState } from 'react'; +import { userApi } from '@/api/endpoints/user/user.api'; +import { UserResponseDto } from '@/api/endpoints/user/user.interface'; export const ProfileDetail = (props: ProfileDetailDto) => { + const [profile, setProfile] = useState