Skip to content

Commit

Permalink
feat: bind data to the growth process section
Browse files Browse the repository at this point in the history
  • Loading branch information
Jxxunnn committed Feb 27, 2024
1 parent efa1872 commit af7aa7e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/(routes)/member/[memberId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default async function Home({ params: { memberId } }: { params: { memberI
<div>
<div className="text-[12px] font-medium leading-[18px] text-[#8B92A0]">성장한지</div>
<div className="text-[20px] font-bold leading-[30px] text-[#2777EA]">
{member.joinDays}
{characters?.joinDays}
</div>
</div>
<Image alt="" priority width={50} height={50} src={EggImage} className="rounded-lg" />
Expand All @@ -54,7 +54,7 @@ export default async function Home({ params: { memberId } }: { params: { memberI
<div>
<div className="text-[12px] font-medium leading-[18px] text-[#8B92A0]">총 메모</div>
<div className="text-[20px] font-bold leading-[30px] text-[#2777EA]">
{member.memoCount}
{characters?.memoCount}
</div>
</div>
<Image alt="" priority width={50} height={50} src={PencilImage} className="rounded-lg" />
Expand Down
1 change: 0 additions & 1 deletion src/services/auth/getMember.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export type Member = {
memberId: number;
characterCount: number;
memoCount: number;
joinDays: number;
};

export type GetMemberResponse = Member;
Expand Down
2 changes: 2 additions & 0 deletions src/services/character/getCharacters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export type GetCharactersResponse = {
isMe: boolean;
memberNickname: string;
cheerCount: number;
memoCount: number;
joinDays: number;
};

export type GetCharactersRequest = {
Expand Down

0 comments on commit af7aa7e

Please sign in to comment.