Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stakbucks committed Oct 1, 2024
1 parent cddd29d commit 11f2f32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,20 @@ import { spacings } from '@bottlesteam/ui';
import { pick } from 'es-toolkit';

export function Recommendations() {
const { data } = useUserInfoQuery();
const { data: currentUser } = useUserInfoQuery();
const { data: recommendationBottles } = useRecommendationBottlesQuery();

return (
<>
<ProfileLayout.Title>{`${data.name}님에게\n추천하는 분들이에요!`}</ProfileLayout.Title>
<ProfileLayout.Title>{`${currentUser.name}님에게\n추천하는 분들이에요!`}</ProfileLayout.Title>
<ProfileLayout.Subtitle>시간이 지나면 새로운 분들을 추천해 드려요</ProfileLayout.Subtitle>
<section style={{ marginTop: spacings.xxl, display: 'flex', flexDirection: 'column', gap: spacings.md }}>
{recommendationBottles.randomBottles.map(bottle => (
<BottleCard key={bottle.id}>
<BottleCard.TimeTag>{bottle.expiredAt}</BottleCard.TimeTag>
<BottleCard.Introduction>
{
// FIXME
'어떤 날은 아침에 눈이 번쩍 떠지는 게 힘이 펄펄 나는 것 같은가 하면 또 어떤 날은 몸이 진흙으로 만들어진 것 같은 때가 있습니다...'
}
</BottleCard.Introduction>
Expand Down
2 changes: 1 addition & 1 deletion apps/bottle/src/models/bottle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface PreviewBottle
}

export interface BaseBottlePreview
extends Pick<OtherUser, 'age' | 'userImageUrl' | 'userName'>,
extends Pick<OtherUser, 'age' | 'userImageUrl' | 'userName' | 'introduction'>,
Pick<OtherUser['profileSelect'], 'keyword' | 'mbti'> {
userId: number;
expiredAt: string; // Date
Expand Down

0 comments on commit 11f2f32

Please sign in to comment.