mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
21 lines
493 B
JavaScript
21 lines
493 B
JavaScript
|
'use strict';
|
||
|
|
||
|
import alt from '../alt';
|
||
|
import LoanContractActions from '../actions/loan_contract_actions';
|
||
|
|
||
|
|
||
|
class LoanContractStore {
|
||
|
constructor() {
|
||
|
this.contractKey = null;
|
||
|
this.contractUrl = null;
|
||
|
this.bindActions(LoanContractActions);
|
||
|
}
|
||
|
|
||
|
onUpdateLoanContract({contractKey, contractUrl}) {
|
||
|
this.contractKey = contractKey;
|
||
|
this.contractUrl = contractUrl;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default alt.createStore(LoanContractStore, 'LoanContractStore');
|