Skip to content

Commit

Permalink
resolved console error due to wrong prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Spiral-Memory committed Mar 9, 2024
1 parent 677e50a commit e3bc16a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/components/ChatBody/RecentMessageButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ const RecentMessageButton = ({ visible, onClick, text }) => {
borderRadius: '20px',
}}
>
<span css={textAndIconContainer}>
<div css={textAndIconContainer}>
{text}
<Icon name="arrow-down" size={16} />
</span>
</div>
</Button>
);
};
Expand Down
8 changes: 7 additions & 1 deletion packages/react/src/components/DynamicHeader/DynamicHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ const DynamicHeader = ({
gap: '0.5rem',
}}
>
<ActionButton onClick={handleClose} ghost display="inline" square small>
<ActionButton
onClick={handleClose}
ghost
display="inline"
square
size="small"
>
<Icon name={iconName} size="1.25rem" />
</ActionButton>

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/LinkPreview/LinkPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const LinkPreview = ({ className = '', style = {}, url, meta, ...props }) => {
ghost
display="inline"
square
small
size="small"
>
{isPreviewOpen ? (
<Icon name="chevron-left" size="1.25rem" />
Expand Down

0 comments on commit e3bc16a

Please sign in to comment.