@@ -66,16 +74,16 @@ class Alert extends React.Component {
Alert.propTypes={
open:PropTypes.bool.isRequired,
info:PropTypes.bool.isRequired,
title:PropTypes.string.isRequired,
agreeText:PropTypes.string.isRequired,
disagreeText:PropTypes.string.isRequired,
infoText:PropTypes.string.isRequired,
description:PropTypes.string,
handleClose:PropTypes.func.isRequired,
handleResponse:PropTypes.func.isRequired,
multilineButtons:PropTypes.bool.isRequired,
open:PropTypes.bool.isRequired,// is the alert open
title:PropTypes.string.isRequired,// Title display on the vindow
description:PropTypes.string,// textual description (below the titile)
info:PropTypes.bool.isRequired,// If it's just un info alert with one button
infoText:PropTypes.string.isRequired,// content of the alert when it's an info
agreeText:PropTypes.string.isRequired,// Text display in the "agree" button
disagreeText:PropTypes.string.isRequired,// Text display in the "disagree" button
multilineButtons:PropTypes.bool.isRequired,// should the agree/disagree button displayed on multiple lines
handleClose:PropTypes.func.isRequired,// function called when the alert is closed
handleResponse:PropTypes.func.isRequired,// function called allong the previous one with false if the user disagreed and true otherwise. Or no parameters if info.