mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-16 21:21:46 +03:00
6b9a2909df
This required an updated in version of eslint-plugin-react to 7.4.0.
25 lines
727 B
JavaScript
25 lines
727 B
JavaScript
import React from 'react'; // eslint-disable-line no-unused-vars
|
|
import PropTypes from 'prop-types';
|
|
import { _t } from '../../../languageHandler';
|
|
|
|
const AppWarning = (props) => {
|
|
return (
|
|
<div className='mx_AppPermissionWarning'>
|
|
<div className='mx_AppPermissionWarningImage'>
|
|
<img src='img/warning.svg' alt={_t('Warning!')} />
|
|
</div>
|
|
<div className='mx_AppPermissionWarningText'>
|
|
<span className='mx_AppPermissionWarningTextLabel'>{ props.errorMsg }</span>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
AppWarning.propTypes = {
|
|
errorMsg: PropTypes.string,
|
|
};
|
|
AppWarning.defaultProps = {
|
|
errorMsg: 'Error',
|
|
};
|
|
|
|
export default AppWarning;
|