|
|
@ -103,42 +103,38 @@ export function AccountUI (props: AccountProps) { |
|
|
|
|
|
|
|
|
|
|
|
const passphraseCreationPrompt = () => { |
|
|
|
const passphraseCreationPrompt = () => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div> Please provide a Passphrase for the account creation |
|
|
|
<div className='d-flex flex-column'> |
|
|
|
<div> |
|
|
|
Please provide a Passphrase for the account creation |
|
|
|
<input id="prompt1" type="password" name='prompt_text' style={{ width: '100%' }} onInput={handlePassphrase} /> |
|
|
|
<input id="prompt1" type="password" name='prompt_text' className='w-100 py-2' onInput={handlePassphrase} /> |
|
|
|
<br /> |
|
|
|
<input id="prompt2" type="password" name='prompt_text' className='w-100' onInput={handleMatchPassphrase} /> |
|
|
|
<br /> |
|
|
|
|
|
|
|
<input id="prompt2" type="password" name='prompt_text' style={{ width: '100%' }} onInput={handleMatchPassphrase} /> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const signMessagePrompt = () => { |
|
|
|
const signMessagePrompt = () => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div> <FormattedMessage id='udapp.enterAMessageToSign' /> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<FormattedMessage id='udapp.enterAMessageToSign' /> |
|
|
|
<textarea |
|
|
|
<textarea |
|
|
|
id="prompt_text" |
|
|
|
id="prompt_text" |
|
|
|
className='bg-light' |
|
|
|
className='bg-light text-light' |
|
|
|
data-id="signMessageTextarea" |
|
|
|
data-id="signMessageTextarea" |
|
|
|
style={{ width: '100%' }} |
|
|
|
style={{ width: '100%' }} |
|
|
|
rows={4} |
|
|
|
rows={4} |
|
|
|
cols={50} |
|
|
|
cols={50} |
|
|
|
onInput={handleMessageInput} |
|
|
|
onInput={handleMessageInput} |
|
|
|
defaultValue={messageRef.current} |
|
|
|
defaultValue={messageRef.current} |
|
|
|
></textarea> |
|
|
|
></textarea> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const signedMessagePrompt = (msgHash: string, signedData: string) => { |
|
|
|
const signedMessagePrompt = (msgHash: string, signedData: string) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div> |
|
|
|
<div className="d-flex flex-column"> |
|
|
|
<b><FormattedMessage id='udapp.hash' />:</b><br /> |
|
|
|
<label className='text-uppercase'><FormattedMessage id='udapp.hash' /></label> |
|
|
|
<span id="remixRunSignMsgHash" data-id="settingsRemixRunSignMsgHash">{msgHash}</span> |
|
|
|
<span id="remixRunSignMsgHash" data-id="settingsRemixRunSignMsgHash">{msgHash}</span> |
|
|
|
<br /><b><FormattedMessage id='udapp.signature' />:</b><br /> |
|
|
|
<label className='pt-2 text-uppercase'><FormattedMessage id='udapp.signature' /></label> |
|
|
|
<span id="remixRunSignMsgSignature" data-id="settingsRemixRunSignMsgSignature">{signedData}</span> |
|
|
|
<span id="remixRunSignMsgSignature" data-id="settingsRemixRunSignMsgSignature">{signedData}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) |
|
|
|
) |
|
|
@ -154,16 +150,16 @@ export function AccountUI (props: AccountProps) { |
|
|
|
tooltipId="remixPlusWrapperTooltip" |
|
|
|
tooltipId="remixPlusWrapperTooltip" |
|
|
|
tooltipText={plusOpt.title} |
|
|
|
tooltipText={plusOpt.title} |
|
|
|
> |
|
|
|
> |
|
|
|
<span id="remixRunPlusWraper"> |
|
|
|
<span id="remixRunPlusWraper"> |
|
|
|
<i id="remixRunPlus" className={`fas fa-plus-circle udapp_icon ${plusOpt.classList}`} aria-hidden="true" onClick={newAccount}></i> |
|
|
|
<i id="remixRunPlus" className={`fas fa-plus-circle udapp_icon ${plusOpt.classList}`} aria-hidden="true" onClick={newAccount}></i> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</CustomTooltip> |
|
|
|
</CustomTooltip> |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
<div className="udapp_account"> |
|
|
|
<div className="udapp_account"> |
|
|
|
<select id="txorigin" data-id="runTabSelectAccount" name="txorigin" className="form-control udapp_select custom-select pr-4" value={selectedAccount} onChange={(e) => { props.setAccount(e.target.value) }}> |
|
|
|
<select id="txorigin" data-id="runTabSelectAccount" name="txorigin" className="form-control udapp_select custom-select pr-4" value={selectedAccount||""} onChange={(e) => { props.setAccount(e.target.value) }}> |
|
|
|
{ |
|
|
|
{ |
|
|
|
accounts.map((value, index) => <option value={value} key={index}>{ loadedAccounts[value] }</option>) |
|
|
|
accounts.map((value, index) => <option value={value} key={index}>{ loadedAccounts[value] }</option>) |
|
|
|
} |
|
|
|
} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<div style={{ marginLeft: -5 }}><CopyToClipboard tip='Copy account to clipboard' content={selectedAccount} direction='top' /></div> |
|
|
|
<div style={{ marginLeft: -5 }}><CopyToClipboard tip='Copy account to clipboard' content={selectedAccount} direction='top' /></div> |
|
|
|
<CustomTooltip |
|
|
|
<CustomTooltip |
|
|
|