mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #4550 from MetaMask/bmd/sign-warning-helplink
add help link to eth_sign warning
This commit is contained in:
commit
8cb5f57c30
@ -178,7 +178,14 @@ SignatureRequest.prototype.renderBody = function () {
|
||||
rows = data
|
||||
} else if (type === 'eth_sign') {
|
||||
rows = [{ name: this.context.t('message'), value: data }]
|
||||
notice = this.context.t('signNotice')
|
||||
notice = [this.context.t('signNotice'),
|
||||
h('span.request-signature__help-link', {
|
||||
onClick: () => {
|
||||
global.platform.openWindow({
|
||||
url: 'https://consensys.zendesk.com/hc/en-us/articles/360004427792',
|
||||
})
|
||||
},
|
||||
}, this.context.t('learnMore'))]
|
||||
}
|
||||
|
||||
return h('div.request-signature__body', {}, [
|
||||
|
@ -183,6 +183,12 @@
|
||||
padding: 6px 18px 15px;
|
||||
}
|
||||
|
||||
&__help-link {
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
color: $curious-blue;
|
||||
}
|
||||
|
||||
&__footer {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
|
Loading…
Reference in New Issue
Block a user