mirror of
https://github.com/ascribe/onion.git
synced 2024-06-23 17:56:28 +02:00
34 lines
925 B
JavaScript
34 lines
925 B
JavaScript
'use strict';
|
|
|
|
import React from 'react';
|
|
import { Link } from 'react-router';
|
|
|
|
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
|
|
|
|
import { getLangText } from '../../../../../utils/lang_utils';
|
|
|
|
|
|
const PRHero = React.createClass({
|
|
propTypes: {
|
|
currentUser: React.PropTypes.shape({
|
|
email: React.PropTypes.object
|
|
}).isRequired
|
|
},
|
|
|
|
render() {
|
|
const { currentUser } = this.props;
|
|
|
|
return (
|
|
<div className="piece--hero">
|
|
<h2><Glyphicon glyph="ok" />
|
|
{getLangText('Congratulations') + (currentUser.email ? ` ${currentUser.email}!` : '!')}
|
|
</h2>
|
|
<h1>{getLangText('You have successfully submitted to Portfolio Review 2016.')}</h1>
|
|
<p>Not you? <Link to="/logout">{getLangText('Change account.')}</Link></p>
|
|
</div>
|
|
);
|
|
}
|
|
});
|
|
|
|
export default PRHero;
|