@@ -6,14 +6,8 @@ import { Avatar } from '@/components/common/avatar'
66import { Dropdown } from '@/components/common/dropdown'
77import { Highlight , Text } from '@/components/common/text'
88
9- type Image = string
10-
119interface UserMenuProps {
12- user : {
13- id : Id
14- name : Name
15- image : Image
16- }
10+ user : User
1711}
1812
1913type Option = {
@@ -25,25 +19,25 @@ type Option = {
2519const linkOptions : Option [ ] = [
2620 {
2721 label : '포트폴리오 관리' ,
28- link : '/portfolio' ,
22+ link : '/my-page/ portfolio' ,
2923 icon : < IcWorkbag /> ,
3024 } ,
3125 {
3226 label : '나의 프로젝트' ,
33- link : '/project' ,
27+ link : '/my-page/ project' ,
3428 icon : < IcCodefile /> ,
3529 } ,
3630 {
3731 label : '설정' ,
38- link : '/setting' ,
32+ link : '/my-page/ setting' ,
3933 icon : < IcSetting /> ,
4034 } ,
4135]
4236
4337const itemClass = 'h-48 w-full gap-8'
4438
4539export const HeaderUserMenu = ( {
46- user : { image , name } ,
40+ user : { imageUrl , name } ,
4741} : UserMenuProps ) : JSX . Element => {
4842 const handleLogout = async ( ) => {
4943 console . log ( '로그아웃' )
@@ -52,10 +46,10 @@ export const HeaderUserMenu = ({
5246 return (
5347 < Dropdown >
5448 < Dropdown . Trigger >
55- < UserMenuTrigger image = { image } />
49+ < UserMenuTrigger image = { imageUrl } />
5650 </ Dropdown . Trigger >
5751 < Dropdown . Menu alignment = { 'right' } className = { 'justify-start p-0' } >
58- < UserMenuHeader image = { image } name = { name } />
52+ < UserMenuHeader image = { imageUrl } name = { name } />
5953 < hr className = 'w-full text-gray-200' />
6054 < div className = { 'w-full p-16' } >
6155 { linkOptions . map ( option => (
@@ -78,7 +72,7 @@ export const HeaderUserMenu = ({
7872 )
7973}
8074
81- const UserMenuTrigger = ( { image } : { image : Image } ) => (
75+ const UserMenuTrigger = ( { image } : { image : ImageURL } ) => (
8276 < div className = { 'flex items-center gap-12' } >
8377 < Text . Body variant = { 'body2' } className = { 'font-medium' } >
8478 환영합니다!
@@ -87,7 +81,7 @@ const UserMenuTrigger = ({ image }: { image: Image }) => (
8781 </ div >
8882)
8983
90- const UserMenuHeader = ( { image, name } : { image : Image ; name : Name } ) => (
84+ const UserMenuHeader = ( { image, name } : { image : ImageURL ; name : Name } ) => (
9185 < div className = { 'flex items-center gap-12 p-16' } >
9286 < Avatar image = { image } size = { 48 } />
9387 < div >
0 commit comments