Skip to content

Commit

Permalink
fix(web-domains): answers 리스트 페이지에서 프로필 클릭 시 잘못된 링크 수정 (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
Doeunnkimm authored Aug 26, 2024
1 parent 42ca7a2 commit 282657b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useRouter } from 'next/navigation';
import { CSSProperties } from 'react';

import { useConvertTypeParams } from '@/about-me/features/hooks/useConvertTypeParams';
import { SelectedAnswerResponse } from '@/result/common/apis/schema/SelectedAnswerResponse';

import { MemberListItem } from '../MemberListItem/MemberListItem';
Expand All @@ -12,6 +13,7 @@ interface MemberListProps {
export const MemberList = (props: MemberListProps) => {
const { members } = props;
const router = useRouter();
const { meetingId } = useConvertTypeParams();

const style = {
display: 'flex',
Expand All @@ -26,7 +28,7 @@ export const MemberList = (props: MemberListProps) => {
imgUrl={member.profileImageFileUrl}
name={member.name}
isOwner={member.role === 'OWNER'}
onClick={() => router.push(`/about/${member.meetingMemberId}`)}
onClick={() => router.push(`/${meetingId}/about/${member.meetingMemberId}`)}
/>
))}
</div>
Expand Down

0 comments on commit 282657b

Please sign in to comment.