-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
채팅방 안내면 진다 도입 후 바 ui 구현 #647
Conversation
.catch((error) => { | ||
console.log('Service Worker registration failed:', error); | ||
.catch(() => { | ||
// console.log('Service Worker registration failed:', error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이부분 console.log도 지워야할 것 같아요
export const isMoimChatRoomDetail = ( | ||
detail: ChatRoomDetail, | ||
): detail is MoimChatRoomDetail => { | ||
return (detail as MoimChatRoomDetail).attributes.moimId !== undefined; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
타입 가드 좋네요
queryFn: () => getChatRoomDetail(chatRoomId), | ||
}); | ||
|
||
return { chatRoomDetail: data, isLoading }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data 변수명 그대로 return하고 사용처에서 변수명을 지정해서 사용하는게 더 쉽게 사용할 수 있을 것 같아요
<DefaultPageLayout.TriHeader> | ||
<DefaultPageLayout.TriHeader.Left> | ||
<h2 css={[theme.typography.h5, common.nonScroll]}> | ||
<> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
현재 <>를 사용하면 stroybook에서 에러가 발생해서 를 사용했는데 해결했나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다 :0
(nowChatRoomType === 'MOIM' || '') && | ||
(chatPreview.isStarted ? '모임 후' : '모임 전') | ||
} | ||
fontColor={ | ||
(nowChatRoomType === 'MOIM' || undefined) && | ||
(chatPreview.isStarted | ||
? theme.colorPalette.yellow[800] | ||
: theme.colorPalette.white[100]) | ||
} | ||
themeColor={ | ||
(nowChatRoomType === 'MOIM' || undefined) && | ||
(chatPreview.isStarted | ||
? theme.colorPalette.yellow[50] | ||
: theme.colorPalette.orange[100]) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tagValue
만 빈문자열로 비교한 이유를 여쭤봐도 될까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
float(실수)
<div key={formatYyyymmddToKorean(chat.date, '-', true)}> | ||
<ChattingRoomSeparator | ||
string={formatYyyymmddToKorean(chat.date, '-', true)} | ||
/> | ||
<Chat key={chat.chatId} chat={chat}> | ||
<ChatChildren chat={chat} /> | ||
</Chat> | ||
</> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
div
의 key
에도 chat의 id를 넣어주면 됩니다! 그리고 최상위 엘리먼트에만 넣으면 되어요 :)
PR의 목적이 무엇인가요?
이슈 ID는 무엇인가요?
설명
추가된 태그
각 프리뷰
안걸린 경우 헤더
걸린 경우 헤더
아직 api가 덜만들어져서 불안정할 수 있습니다.
closed #624