2017-05-03 09:04:16 +09:00
|
|
|
import React from 'react';
|
2017-04-24 07:38:37 +09:00
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
2017-06-24 02:36:54 +09:00
|
|
|
export default class Warning extends React.PureComponent {
|
2017-04-24 07:38:37 +09:00
|
|
|
|
2017-05-12 21:44:10 +09:00
|
|
|
static propTypes = {
|
2017-05-21 00:31:47 +09:00
|
|
|
message: PropTypes.node.isRequired,
|
2017-05-12 21:44:10 +09:00
|
|
|
};
|
2017-04-24 07:38:37 +09:00
|
|
|
|
|
|
|
render () {
|
|
|
|
const { message } = this.props;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className='compose-form__warning'>
|
|
|
|
{message}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|