Skip to content

Commit

Permalink
fix(web-domains): 다음 질문인 카카오톡 공유하기 오지정 오류 해결 (#120)
Browse files Browse the repository at this point in the history
* refactor: 다음 질문인 공유 nextTarget field 추가 및 카카오 공유하기에 적용

* refactor: 버튼 디자인 시안에 맞게 large로 적용
  • Loading branch information
semnil5202 authored Aug 25, 2024
1 parent 1d985d3 commit 5830217
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
interface TargetMember {
meetingMemberId: number;
name: string;
profileImageFileUrl: string;
role: string;
}

export interface ActiveQuestionResponse {
meetingQuestionId: number;
questionImageFileUrl: string;
Expand All @@ -9,10 +16,6 @@ export interface ActiveQuestionResponse {
startTime: string;
isAnswered: boolean;
isQuestionRegistered: boolean;
targetMember: {
meetingMemberId: number;
name: string;
profileImageFileUrl: string;
role: string;
};
targetMember: TargetMember;
nextTargetMember: TargetMember;
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export const ShareNextQuestionerContainer = () => {
다음 질문인에게 공유하기
</Button>
<Link href="/answer/opening">
<Button variant="sub">제일 먼저 답변하기</Button>
<Button variant="sub" size="large">
제일 먼저 답변하기
</Button>
</Link>
</div>
</div>
Expand All @@ -66,7 +68,7 @@ export const ShareNextQuestionerContainer = () => {
topTitle="다음 릴레이 질문인에게"
bottomTitle="공유해 보세요!"
shareImageUrl={KAKAO_IMAGE_URL}
shareDescription={`다음 질문인은 ${activeQuestion?.targetMember.name}님이에요! 현재 진행 중인 릴레이 질문이 끝나면 질문을 꼭! 생성해주세요`}
shareDescription={`다음 질문인은 ${activeQuestion?.nextTargetMember?.name || '000'}님이에요! 현재 진행 중인 릴레이 질문이 끝나면 질문을 꼭! 생성해주세요`}
shareLink={`${getWebDomain()}/answer/opening`}
/>
</>
Expand Down

0 comments on commit 5830217

Please sign in to comment.