From a5f236e7cdd426ae811a205eb31a592a7864a882 Mon Sep 17 00:00:00 2001 From: TimofeyBoyko Date: Tue, 27 Sep 2022 12:29:34 +0300 Subject: [PATCH] Web:Components:Snackbar: fix prop types --- packages/components/snackbar/index.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/components/snackbar/index.js b/packages/components/snackbar/index.js index 8641705ec5..306cc19813 100644 --- a/packages/components/snackbar/index.js +++ b/packages/components/snackbar/index.js @@ -187,18 +187,18 @@ class SnackBar extends React.Component { } SnackBar.propTypes = { - text: PropType.string, - headerText: PropType.string, - btnText: PropType.string, - backgroundImg: PropType.string, - backgroundColor: PropType.string, - textColor: PropType.string, - showIcon: PropType.bool, - clickAction: PropType.func, - fontSize: PropType.string, - fontWeight: PropType.string, - textAlign: PropType.string, - htmlContent: PropType.string, + text: PropTypes.oneOfType([PropTypes.object, PropTypes.string]), + headerText: PropTypes.string, + btnText: PropTypes.string, + backgroundImg: PropTypes.string, + backgroundColor: PropTypes.string, + textColor: PropTypes.string, + showIcon: PropTypes.bool, + clickAction: PropTypes.func, + fontSize: PropTypes.string, + fontWeight: PropTypes.string, + textAlign: PropTypes.string, + htmlContent: PropTypes.string, style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]), countDownTime: PropType.number, sectionWidth: PropTypes.number,