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