element-web/src/components/views/elements/AppWarning.js

25 lines
693 B
JavaScript
Raw Normal View History

2017-08-01 23:00:18 +03:00
import React from 'react'; // eslint-disable-line no-unused-vars
import PropTypes from 'prop-types';
2017-08-01 23:00:18 +03:00
const AppWarning = (props) => {
return (
<div className='mx_AppPermissionWarning'>
<div className='mx_AppPermissionWarningImage'>
<img src={require("../../../../res/img/warning.svg")} alt='' />
</div>
<div className='mx_AppPermissionWarningText'>
<span className='mx_AppPermissionWarningTextLabel'>{ props.errorMsg }</span>
</div>
</div>
);
2017-08-01 23:00:18 +03:00
};
AppWarning.propTypes = {
errorMsg: PropTypes.string,
};
AppWarning.defaultProps = {
2017-08-01 19:43:38 +03:00
errorMsg: 'Error',
};
export default AppWarning;