mirror of
https://github.com/ascribe/onion.git
synced 2024-06-30 13:41:57 +02:00
Fix load piece method in WalletPieceContainer
This commit is contained in:
parent
4302da2f81
commit
81aa052a8a
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
|
|
||||||
import Piece from '../../../../../components/ascribe_detail/piece';
|
import Piece from '../../../../../components/ascribe_detail/piece';
|
||||||
|
|
||||||
import WalletActionPanel from './wallet_action_panel';
|
import WalletActionPanel from './wallet_action_panel';
|
||||||
|
@ -14,10 +13,10 @@ import Note from '../../../../ascribe_detail/note';
|
||||||
import DetailProperty from '../../../../ascribe_detail/detail_property';
|
import DetailProperty from '../../../../ascribe_detail/detail_property';
|
||||||
|
|
||||||
import ApiUrls from '../../../../../constants/api_urls';
|
import ApiUrls from '../../../../../constants/api_urls';
|
||||||
|
import AppConstants from '../../../../../constants/application_constants';
|
||||||
|
|
||||||
import { getLangText } from '../../../../../utils/lang_utils';
|
import { getLangText } from '../../../../../utils/lang_utils';
|
||||||
import { mergeOptions } from '../../../../../utils/general_utils';
|
|
||||||
import AppConstants from '../../../../../constants/application_constants';
|
|
||||||
|
|
||||||
let WalletPieceContainer = React.createClass({
|
let WalletPieceContainer = React.createClass({
|
||||||
|
|
||||||
|
@ -34,7 +33,7 @@ let WalletPieceContainer = React.createClass({
|
||||||
return (
|
return (
|
||||||
<Piece
|
<Piece
|
||||||
piece={this.props.piece}
|
piece={this.props.piece}
|
||||||
loadPiece={this.loadPiece}
|
loadPiece={this.props.loadPiece}
|
||||||
header={
|
header={
|
||||||
<div className="ascribe-detail-header">
|
<div className="ascribe-detail-header">
|
||||||
<hr style={{marginTop: 0}}/>
|
<hr style={{marginTop: 0}}/>
|
||||||
|
@ -54,7 +53,7 @@ let WalletPieceContainer = React.createClass({
|
||||||
<WalletActionPanel
|
<WalletActionPanel
|
||||||
piece={this.props.piece}
|
piece={this.props.piece}
|
||||||
currentUser={this.props.currentUser}
|
currentUser={this.props.currentUser}
|
||||||
loadPiece={this.loadPiece}
|
loadPiece={this.props.loadPiece}
|
||||||
submitButtonType={this.props.submitButtonType}/>
|
submitButtonType={this.props.submitButtonType}/>
|
||||||
<CollapsibleParagraph
|
<CollapsibleParagraph
|
||||||
title={getLangText('Loan History')}
|
title={getLangText('Loan History')}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user