mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
add help link to eth_sign warning
This commit is contained in:
parent
b7a469681b
commit
4196b16f06
@ -178,7 +178,14 @@ SignatureRequest.prototype.renderBody = function () {
|
|||||||
rows = data
|
rows = data
|
||||||
} else if (type === 'eth_sign') {
|
} else if (type === 'eth_sign') {
|
||||||
rows = [{ name: this.context.t('message'), value: data }]
|
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', {}, [
|
return h('div.request-signature__body', {}, [
|
||||||
|
@ -183,6 +183,12 @@
|
|||||||
padding: 6px 18px 15px;
|
padding: 6px 18px 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__help-link {
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: underline;
|
||||||
|
color: $curious-blue;
|
||||||
|
}
|
||||||
|
|
||||||
&__footer {
|
&__footer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user