Skip to content

Commit

Permalink
chore: Add title to MessageSystemProps type (#676)
Browse files Browse the repository at this point in the history
Co-authored-by: Guilherme Gazzo <guilhermegazzo@gmail.com>
  • Loading branch information
juliajforesti and ggazzo authored Mar 31, 2022
1 parent 4cd8e39 commit 0258d9c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import './MessageSystem.styles.scss';

type MessageSystemProps = {
children?: ReactNode;
title?: string;
};

export const MessageSystem = (props: MessageSystemProps) => (
<div className='rcx-box rcx-box--full rcx-message-system'>
{props.children}
export const MessageSystem = ({ children, title }: MessageSystemProps) => (
<div className='rcx-box rcx-box--full rcx-message-system' title={title}>
{children}
</div>
);

0 comments on commit 0258d9c

Please sign in to comment.