mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
Add logout link to submitted piece's hero component
This commit is contained in:
parent
c9d330c2bd
commit
268cbd55ad
@ -1,11 +1,14 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { Link } from 'react-router';
|
||||||
|
|
||||||
|
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
|
||||||
|
|
||||||
import UserStore from '../../../../../stores/user_store';
|
import UserStore from '../../../../../stores/user_store';
|
||||||
import UserActions from '../../../../../actions/user_actions';
|
import UserActions from '../../../../../actions/user_actions';
|
||||||
|
|
||||||
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
|
import { getLangText } from '../../../../../utils/lang_utils';
|
||||||
|
|
||||||
|
|
||||||
const PRHero = React.createClass({
|
const PRHero = React.createClass({
|
||||||
@ -31,9 +34,11 @@ const PRHero = React.createClass({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="piece--hero">
|
<div className="piece--hero">
|
||||||
<h2><Glyphicon glyph="ok" /> Congratulations {currentUser.email}!</h2>
|
<h2><Glyphicon glyph="ok" />
|
||||||
<h1>You have successfully submitted to Portfolio Review 2016</h1>
|
{getLangText('Congratulations') + (currentUser.email ? ` ${currentUser.email}!` : '!')}
|
||||||
<p>See below, your uploaded portfolio:</p>
|
</h2>
|
||||||
|
<h1>{getLangText('You have successfully submitted to Portfolio Review 2016.')}</h1>
|
||||||
|
<p>Not you? <Link to="/logout">{getLangText('Change account.')}</Link></p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user