conditionally render alert based on settings

This commit is contained in:
Alex Holliday committed 2025-05-13 09:59:21 -07:00
1 parent e5589acee3
commit e7ef068945
3 files changed
+43 -28

No files matched your search

+1 -1
View File
@@ -111,7 +111,7 @@ const Alert = ({ variant, title, body, isToast, hasIcon = true, onClick }) => {
Alert.propTypes = {
variant: PropTypes.oneOf(["info", "error", "warning"]).isRequired,
title: PropTypes.string,
body: PropTypes.string,
body: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
isToast: PropTypes.bool,
hasIcon: PropTypes.bool,
onClick: function (props, propName, componentName) {