Notices in one screen, top border for signup headers

This commit is contained in:
viktor 2018-08-01 18:49:30 +03:00
parent f3d0f6d0a6
commit f658571930
4 changed files with 16 additions and 28 deletions

View File

@ -1,3 +1,13 @@
Dear Nifty Wallet Users,
Nifty Wallet is beta software.
When you log in to Nifty Wallet, your current account's address is visible to every new site you visit. This can be used to look up your account balances of Ether and other tokens.
For your privacy, for now, please sign out of Nifty Wallet when you're done using a site.
There have been several instances of high-profile legitimate websites such as BTC Manager and Games Workshop that have had their websites temporarily compromised. This involves showing a fake Nifty Wallet window on the page asking for user's seed phrases. Nifty Wallet will never open itself in this way.
## Related Links ##
**[Terms of Service](https://github.com/poanetwork/metamask-extension/wiki/Terms-of-Service)**
**[Terms of Service](https://github.com/poanetwork/metamask-extension/wiki/Terms-of-Service)**

View File

@ -10,26 +10,4 @@ module.exports = [
title: 'Terms of Use',
body: fs.readFileSync(path.join(__dirname, '/archive', 'notice_0.md'), 'utf8'),
},
{
id: 2,
read: false,
date: 'Mon May 08 2017',
title: 'Privacy Notice',
body: fs.readFileSync(path.join(__dirname, '/archive', 'notice_2.md'), 'utf8'),
},
{
id: 3,
read: false,
date: 'Tue Nov 28 2017',
title: 'Seed Phrase Alert',
firstVersion: '<=3.12.0',
body: fs.readFileSync(path.join(__dirname, '/archive', 'notice_3.md'), 'utf8'),
},
{
id: 4,
read: false,
date: 'Wed Jun 13 2018',
title: 'Phishing Warning',
body: fs.readFileSync(path.join(__dirname, '/archive', 'notice_4.md'), 'utf8'),
},
]

View File

@ -15,7 +15,7 @@ function Notice () {
Notice.prototype.render = function () {
const { notice, onConfirm } = this.props
const { title, body } = notice
const state = this.state || { disclaimerDisabled: false }
const state = this.state || { disclaimerDisabled: true }
const disabled = state.disclaimerDisabled
return (
@ -24,7 +24,7 @@ Notice.prototype.render = function () {
width: '100%',
},
}, [
h('h3.flex-center.terms-header', {
h('h3.flex-center.terms-header.section-title', {
style: {
background: '#ffffff',
color: '#333333',
@ -93,7 +93,7 @@ Notice.prototype.render = function () {
h('button', {
disabled,
onClick: () => {
this.setState({disclaimerDisabled: false})
this.setState({disclaimerDisabled: true})
onConfirm()
},
style: {

View File

@ -26,7 +26,7 @@ RestoreVaultScreen.prototype.render = function () {
h('.initialize-screen.flex-column.flex-center.flex-grow', [
h('h3.flex-center', {
h('h3.flex-center.section-title', {
style: {
fontFamily: 'Nunito SemiBold',
background: '#ffffff',
@ -37,7 +37,7 @@ RestoreVaultScreen.prototype.render = function () {
padding: 6,
},
}, [
'Restore Vault',
h('h2.page-subtitle', 'Restore Vault'),
]),
// wallet seed entry