Skip to content

Commit

Permalink
refactor: Rename typing indicator style props
Browse files Browse the repository at this point in the history
  • Loading branch information
tjtanjin committed Sep 1, 2024
1 parent 69fc1fc commit 74247d6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/components/ChatBotBody/ChatBotBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ const ChatBotBody = ({
}}
className={`rcb-bot-message ${botBubbleEntryStyle}`}
>
<div className="rcb-typing-indicator" style={{...styles?.rcbTypingIndicatorStyle}}>
<span className="rcb-dot" style={{...styles?.rcbDotStyle}}/>
<span className="rcb-dot" style={{...styles?.rcbDotStyle}}/>
<span className="rcb-dot" style={{...styles?.rcbDotStyle}}/>
<div className="rcb-typing-indicator" style={{...styles?.rcbTypingIndicatorContainerStyle}}>
<span className="rcb-dot" style={{...styles?.rcbTypingIndicatorDotStyle}}/>
<span className="rcb-dot" style={{...styles?.rcbTypingIndicatorDotStyle}}/>
<span className="rcb-dot" style={{...styles?.rcbTypingIndicatorDotStyle}}/>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/constants/internal/DefaultStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ export const DefaultStyles: Styles = {
voiceIconStyle: {},
voiceIconDisabledStyle: {},
sendIconStyle: {},
rcbTypingIndicatorStyle: {},
rcbDotStyle: {},
rcbTypingIndicatorContainerStyle: {},
rcbTypingIndicatorDotStyle: {},
}
4 changes: 2 additions & 2 deletions src/types/Styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ export type Styles = {
voiceIconStyle?: React.CSSProperties;
voiceIconDisabledStyle?: React.CSSProperties;
sendIconStyle?: React.CSSProperties;
rcbTypingIndicatorStyle?: React.CSSProperties;
rcbDotStyle?: React.CSSProperties;
rcbTypingIndicatorContainerStyle?: React.CSSProperties;
rcbTypingIndicatorDotStyle?: React.CSSProperties;
}

0 comments on commit 74247d6

Please sign in to comment.