Web: components: Toast: added isRequired condition

This commit is contained in:
Daniil Senkiv 2019-07-29 12:07:59 +03:00
parent b10e2eb310
commit a9470612e8

View File

@ -141,7 +141,7 @@ Toast.propTypes = {
autoClosed: PropTypes.bool,
text: PropTypes.string,
title: PropTypes.string,
type: PropTypes.oneOf(['success', 'error', 'warning', 'info']),
type: PropTypes.oneOf(['success', 'error', 'warning', 'info']).isRequired,
};
Toast.defaultProps = {