mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Cosmetic changes in EditionContainer and CoaVerifyContainer
This commit is contained in:
parent
7605f093ab
commit
02af024609
@ -89,12 +89,15 @@ let EditionContainer = React.createClass({
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { edition, currentUser, coaMeta } = this.state;
|
const { edition, currentUser, coaMeta } = this.state;
|
||||||
|
const { actionPanelButtonListType, furtherDetailsType } = this.props;
|
||||||
|
|
||||||
if (Object.keys(edition).length && edition.id && currentUser && currentUser.email) {
|
if (Object.keys(edition).length && edition.id && currentUser && currentUser.email) {
|
||||||
setDocumentTitle([edition.artist_name, edition.title].join(', '));
|
setDocumentTitle([edition.artist_name, edition.title].join(', '));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Edition
|
<Edition
|
||||||
actionPanelButtonListType={this.props.actionPanelButtonListType}
|
actionPanelButtonListType={actionPanelButtonListType}
|
||||||
furtherDetailsType={this.props.furtherDetailsType}
|
furtherDetailsType={furtherDetailsType}
|
||||||
edition={edition}
|
edition={edition}
|
||||||
coaError={coaMeta.err}
|
coaError={coaMeta.err}
|
||||||
currentUser={currentUser}
|
currentUser={currentUser}
|
||||||
|
@ -17,13 +17,14 @@ import { setDocumentTitle } from '../utils/dom_utils';
|
|||||||
|
|
||||||
|
|
||||||
let CoaVerifyContainer = React.createClass({
|
let CoaVerifyContainer = React.createClass({
|
||||||
|
|
||||||
propTypes: {
|
propTypes: {
|
||||||
location: React.PropTypes.object
|
location: React.PropTypes.object
|
||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
const { message, signature } = this.props.location.query;
|
||||||
setDocumentTitle(getLangText('Verify your Certificate of Authenticity'));
|
setDocumentTitle(getLangText('Verify your Certificate of Authenticity'));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="ascribe-login-wrapper">
|
<div className="ascribe-login-wrapper">
|
||||||
<br/>
|
<br/>
|
||||||
@ -31,7 +32,9 @@ let CoaVerifyContainer = React.createClass({
|
|||||||
{getLangText('Verify your Certificate of Authenticity')}
|
{getLangText('Verify your Certificate of Authenticity')}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<CoaVerifyForm location={this.props.location}/>
|
<CoaVerifyForm
|
||||||
|
message={message}
|
||||||
|
signature={signature}/>
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
{getLangText('ascribe is using the following public key for verification')}:
|
{getLangText('ascribe is using the following public key for verification')}:
|
||||||
@ -52,7 +55,8 @@ let CoaVerifyContainer = React.createClass({
|
|||||||
|
|
||||||
let CoaVerifyForm = React.createClass({
|
let CoaVerifyForm = React.createClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
location: React.PropTypes.object
|
message: React.PropTypes.string,
|
||||||
|
signature: React.PropTypes.string
|
||||||
},
|
},
|
||||||
|
|
||||||
handleSuccess(response){
|
handleSuccess(response){
|
||||||
@ -64,7 +68,8 @@ let CoaVerifyForm = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {message, signature} = this.props.location.query;
|
const { message, signature } = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Form
|
<Form
|
||||||
|
Loading…
Reference in New Issue
Block a user