diff options
author | Tulio Casagrande <tcasagra@thoughtworks.com> | 2017-02-21 13:51:41 -0300 |
---|---|---|
committer | Anike Arni <aarni@thoughtworks.com> | 2017-02-22 15:22:55 -0300 |
commit | f7bd078bcce2d6cad419fceb55ab71415cda4d33 (patch) | |
tree | 918de20bb17925912d0c9ed8bb053d7aa8a3826f /web-ui/src/login/error/generic_error.js | |
parent | 92c6a9dbc39318df48b4b3d5fae1a3888f201343 (diff) |
[#907] Display error message for mobile version
with @anikarni
Diffstat (limited to 'web-ui/src/login/error/generic_error.js')
-rw-r--r-- | web-ui/src/login/error/generic_error.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/web-ui/src/login/error/generic_error.js b/web-ui/src/login/error/generic_error.js new file mode 100644 index 00000000..023e1bcf --- /dev/null +++ b/web-ui/src/login/error/generic_error.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2017 ThoughtWorks, Inc. + * + * Pixelated is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Pixelated is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with Pixelated. If not, see <http://www.gnu.org/licenses/>. + */ + +import React from 'react'; +import { translate } from 'react-i18next'; + +import './generic-error.scss'; + +export const GenericError = ({ t }) => ( + <div className='generic-error'> + <img className='dead-mail' src='/public/images/dead-mail.svg' alt='' /> + <div> + <h2>{t('error.login.title')}</h2> + <p>{t('error.login.message')}</p> + </div> + </div> +); + +GenericError.propTypes = { + t: React.PropTypes.func.isRequired +}; + +export default translate('', { wait: true })(GenericError); |