Skip to content

Commit

Permalink
Merge pull request #676 from gympass/feat/change-banner-message-prop
Browse files Browse the repository at this point in the history
  🚀 feat(banner/web): message prop now accepts react element
  • Loading branch information
matheushdsbr authored Aug 10, 2023
2 parents 06f3602 + 0020994 commit bf379a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/yoga/src/Banner/web/Banner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import { borders, margins, paddings } from '@gympass/yoga-system';
import {
checkPropTypes,
elementType,
element,
func,
oneOf,
oneOfType,
shape,
string,
} from 'prop-types';
Expand Down Expand Up @@ -113,7 +115,7 @@ Banner.propTypes = {
/** style the banner following the theme (success, informative, attention) */
variant: oneOf(['success', 'informative', 'attention']),
/** the message to display */
message: string.isRequired,
message: oneOfType([string, element]).isRequired,
/** the label and action fuction are required for banner action buttons */
primaryButton: BannerActionButtonType,
/** the secondary button should only be used assemble the primary button (the label and action fuction are required for banner action buttons). */
Expand Down

0 comments on commit bf379a1

Please sign in to comment.