• R/O
  • HTTP
  • SSH
  • HTTPS

bytom-dashboard: Commit

dashboard of Bytom


Commit MetaInfo

Revisionbb328b8a2c00c7f9897371418e42bae03d7e79d3 (tree)
Zeit2021-06-23 17:41:22
Autorj <coffce404@gmai...>
Commiterj

Log Message

fix: hide cross chain

Ändern Zusammenfassung

Diff

--- a/src/features/balances/components/List.jsx
+++ b/src/features/balances/components/List.jsx
@@ -11,7 +11,7 @@ const type = 'balance'
1111
1212 class List extends React.Component {
1313 componentDidMount() {
14- this.props.getVoteDetail()
14+ // this.props.getVoteDetail()
1515 }
1616
1717 rescanWallet(){
--- a/src/features/transactions/components/New/AdvancedTransactionForm.jsx
+++ b/src/features/transactions/components/New/AdvancedTransactionForm.jsx
@@ -143,8 +143,8 @@ class AdvancedTxForm extends React.Component {
143143 <MenuItem eventKey='control_address'>Control with address</MenuItem>
144144 <MenuItem eventKey='vote_output'>Vote</MenuItem>
145145 <MenuItem eventKey='veto'>Veto</MenuItem>
146- <MenuItem eventKey='cross_chain_in'>Cross Chain In</MenuItem>
147- <MenuItem eventKey='cross_chain_out'>Cross Chain Out</MenuItem>
146+ {/* <MenuItem eventKey='cross_chain_in'>Cross Chain In</MenuItem> */}
147+ {/* <MenuItem eventKey='cross_chain_out'>Cross Chain Out</MenuItem> */}
148148 </DropdownButton>
149149 </div>
150150 </FormSection>
--- a/src/features/transactions/components/New/New.jsx
+++ b/src/features/transactions/components/New/New.jsx
@@ -25,9 +25,10 @@ class Form extends React.Component {
2525 componentDidMount() {
2626 if (!this.props.autocompleteIsBalanceLoaded) {
2727 this.props.fetchBalanceAll().then(() => {
28- this.props.getVoteDetail().then(()=>{
29- this.props.didLoadBalanceAutocomplete()
30- })
28+ // this.props.getVoteDetail().then(()=>{
29+ // this.props.didLoadBalanceAutocomplete()
30+ // })
31+ this.props.didLoadBalanceAutocomplete()
3132 })
3233 }
3334 if (!this.props.autocompleteIsAssetLoaded) {
@@ -133,11 +134,11 @@ class Form extends React.Component {
133134 onClick={(e) => this.showForm(e, 'vote')}>
134135 {t('transaction.new.vote')}
135136 </button>
136- <button
137+ {/* <button
137138 className={`btn btn-default ${this.props.crossChainSelected && 'active'}`}
138139 onClick={(e) => this.showForm(e, 'crossChain')}>
139140 {t('transaction.new.crossChain')}
140- </button>
141+ </button> */}
141142 <button
142143 className={`btn btn-default ${this.props.issueAssetSelected && 'active'}`}
143144 onClick={(e) => this.showForm(e, 'issueAsset')}>
--- a/src/features/transactions/components/New/New.scss
+++ b/src/features/transactions/components/New/New.scss
@@ -106,8 +106,8 @@
106106 flex-direction: column;
107107
108108 >div:first-of-type{
109- width: 60%;
110- min-width: 350px;
109+ // width: 60%;
110+ // min-width: 350px;
111111 }
112112 }
113113
Show on old repository browser