apeman-react-toast
Version:
apeman react package for toast components.
48 lines (35 loc) • 695 B
JSX
/**
* Info toast.
* @class ApInfoToast
*/
import React, {PropTypes as types} from 'react'
import ApToast from './ap_toast'
/** @lends ApInfoToast */
const ApInfoToast = React.createClass({
// --------------------
// Specs
// --------------------
propTypes: ApToast.propTypes,
mixins: [],
statics: {},
getInitialState () {
return {}
},
getDefaultProps () {
return {
messages: [],
icon: 'fa fa-exclamation-circle',
dismiss: null,
level: 'info'
}
},
render () {
const s = this
let { props } = s
return (
<ApToast { ...props } className='ap-info-toast'/>
)
}
})
export default ApInfoToast