Skip to content

Commit

Permalink
reply button 상수 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
guswl98 committed Jan 23, 2025
1 parent 93ef7c9 commit 7d73290
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/chat/src/bubble-container/bubble-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { format, setDefaultOptions } from 'date-fns'
import { ko } from 'date-fns/locale'

import { ReplyMessageIcon } from '../icons/reply-message-icon'
import { REPLY_BUTTON_DATA_ID } from '../chat/constants'

const BubbleInfoContainer = styled(Container)`
vertical-align: bottom;
Expand Down Expand Up @@ -50,7 +51,7 @@ export function BubbleInfo({
<ReplyActionButton
align={align}
onClick={onReplyClick}
data-id="reply-button"
data-id={REPLY_BUTTON_DATA_ID}
>
<ReplyMessageIcon />
</ReplyActionButton>
Expand Down
2 changes: 2 additions & 0 deletions packages/chat/src/chat/constants.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export const DEFAULT_MESSAGE_ID_PREFIX = 'message'

export const REPLY_BUTTON_DATA_ID = 'reply-button'

0 comments on commit 7d73290

Please sign in to comment.