Skip to content
This repository has been archived by the owner on Dec 19, 2020. It is now read-only.

Commit

Permalink
add warning message to app menu
Browse files Browse the repository at this point in the history
  • Loading branch information
vbloher committed Nov 27, 2018
1 parent ec8d007 commit 2bf69e2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "[email protected]"
Expand Down
16 changes: 12 additions & 4 deletions src/containers/Application/AppMenu.js
Original file line number Diff line number Diff line change
@@ -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, {
Expand All @@ -11,7 +12,6 @@ import MenuContainer, {
AddMenuItemReject,
} from '../../components/AppMenu/AppMenu';


class AppMenu extends Component {
addToFavorites = () => {
const dura = this.props.currentDura;
Expand All @@ -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 (
Expand All @@ -60,6 +60,14 @@ class AppMenu extends Component {
</AddMenuItem>
)
}
<Message
style={{
margin: 15,
}}
type='error'
>
Cyb in Ethereum Mainnet may not be secure yet. We recommend to operate accounts with small balance at your own risk.
</Message>
</MenuContainer>
);
}
Expand Down
11 changes: 0 additions & 11 deletions src/containers/Application/Application.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,6 @@ class Application extends Component {
<MenuButton onClick={ this.props.toggleMenu } />
</NavigationLeft>
<NavigationCenter>
<Message
style={{
position: 'fixed',
top: 10,
left: 75,
width: 340,
}}
type='info'
>
Cyb in Ethereum Mainnet may not be secure yet. We recommend to operate accounts with small balance at your own risk.
</Message>
<NavigationContainer>
{!homePage && <BackButton disabled={ !canBack } onClick={ goBack }>&#8592;</BackButton>}
<Container>
Expand Down

0 comments on commit 2bf69e2

Please sign in to comment.