From 2bf69e273a4c15b3de894a4fa8cd4385086919e5 Mon Sep 17 00:00:00 2001 From: Valentin Stavetski Date: Tue, 27 Nov 2018 21:06:09 +0300 Subject: [PATCH] add warning message to app menu --- package.json | 2 +- src/containers/Application/AppMenu.js | 16 ++++++++++++---- src/containers/Application/Application.js | 11 ----------- 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 3161028..bea781d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "cyb", "description": "Web3 browser", "main": "public/electron.js", - "version": "0.0.33", + "version": "0.0.34", "author": { "name": "cybercongress", "email": "cybercongress42@gmail.com" diff --git a/src/containers/Application/AppMenu.js b/src/containers/Application/AppMenu.js index 3a04db2..6d239b4 100644 --- a/src/containers/Application/AppMenu.js +++ b/src/containers/Application/AppMenu.js @@ -1,5 +1,6 @@ import React, { Component } from 'react'; import { connect } from 'react-redux'; +import { Message } from '@cybercongress/ui'; import * as actions from '../../redux/appMenu'; import MenuContainer, { @@ -11,7 +12,6 @@ import MenuContainer, { AddMenuItemReject, } from '../../components/AppMenu/AppMenu'; - class AppMenu extends Component { addToFavorites = () => { const dura = this.props.currentDura; @@ -31,13 +31,13 @@ class AppMenu extends Component { }; clickLogo = () => { - this.props.toggleMenu(); + this.props.toggleMenu(); }; render() { const { - openMenu, deleteMenuItem, menuItems, - pendingAddToFavorites, + openMenu, deleteMenuItem, menuItems, + pendingAddToFavorites, } = this.props; return ( @@ -60,6 +60,14 @@ class AppMenu extends Component { ) } + + Cyb in Ethereum Mainnet may not be secure yet. We recommend to operate accounts with small balance at your own risk. + ); } diff --git a/src/containers/Application/Application.js b/src/containers/Application/Application.js index ed146ec..5665380 100644 --- a/src/containers/Application/Application.js +++ b/src/containers/Application/Application.js @@ -52,17 +52,6 @@ class Application extends Component { - -Cyb in Ethereum Mainnet may not be secure yet. We recommend to operate accounts with small balance at your own risk. - {!homePage && }