Web: Components: Toast - removed redundant properties

This commit is contained in:
DmitrySychugov 2023-04-21 17:19:23 +05:00
parent 36d2476150
commit 93d0ec5c25

View File

@ -57,14 +57,12 @@ const Toast = (props) => {
};
Toast.propTypes = {
autoClosed: PropTypes.bool,
/** Accepts class */
className: PropTypes.string,
/** Accepts id */
id: PropTypes.string,
/** Accepts css style */
style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
text: PropTypes.string,
/** Title inside a toast */
title: PropTypes.string,
/** Sets the color and icon of the toast */
@ -72,8 +70,6 @@ Toast.propTypes = {
};
Toast.defaultProps = {
autoClosed: true,
text: "Demo text for example",
title: "Demo title",
type: "success",
};