-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show raw unsigned transaction in modal, refactor wallet actions to ta…
…ke address first
- Loading branch information
1 parent
4467e82
commit 65a2ea8
Showing
8 changed files
with
132 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
app/frontend/components/pages/sendAda/rawTransactionModal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
const {h} = require('preact') | ||
const connect = require('unistore/preact').connect | ||
const actions = require('../../../actions') | ||
const Modal = require('../../common/modal') | ||
|
||
class RawTransactionModal { | ||
render({rawTransaction, setRawTransactionOpen}) { | ||
return h( | ||
Modal, | ||
{ | ||
closeHandler: () => setRawTransactionOpen(false), | ||
bodyClass: 'width-auto', | ||
}, | ||
h( | ||
'div', | ||
{class: 'width-auto'}, | ||
h('h4', undefined, 'Raw unsigned transaction'), | ||
h( | ||
'div', | ||
undefined, | ||
h( | ||
'div', | ||
{class: 'raw-unsigned-transaction force-select-all'}, | ||
h('span', undefined, rawTransaction) | ||
) | ||
) | ||
) | ||
) | ||
} | ||
} | ||
|
||
module.exports = connect( | ||
(state) => ({ | ||
rawTransaction: state.rawTransaction, | ||
}), | ||
actions | ||
)(RawTransactionModal) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters