diff --git a/app/components/AdminMode.js b/app/components/AdminMode.js
new file mode 100644
index 0000000..f32e78b
--- /dev/null
+++ b/app/components/AdminMode.js
@@ -0,0 +1,30 @@
+import React, { Fragment } from 'react';
+import { Tabs, Tab } from 'react-bootstrap';
+import TopNavbar from './topnavbar';
+import TestTokenUI from './testtoken';
+import ERC20TokenUI from './erc20token';
+import ENSSubManagement from './ensSubManagement';
+import NameLookup from './ens/nameLookup';
+
+
+const AdminMode = () => (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+);
+
+export default AdminMode;
diff --git a/app/dapp.js b/app/dapp.js
index fb8cd0d..10169aa 100644
--- a/app/dapp.js
+++ b/app/dapp.js
@@ -1,21 +1,22 @@
-import React from 'react';
+import React, { Fragment } from 'react';
import ReactDOM from 'react-dom';
import { Tabs, Tab } from 'react-bootstrap';
-
+import Toggle from 'react-toggle';
import EmbarkJS from 'Embark/EmbarkJS';
import TopNavbar from './components/topnavbar';
import TestTokenUI from './components/testtoken';
import ERC20TokenUI from './components/erc20token';
import ENSSubManagement from './components/ensSubManagement';
import NameLookup from './components/ens/nameLookup';
+import AdminMode from './components/AdminMode'
import './dapp.css';
class App extends React.Component {
-
constructor(props) {
- super(props);
+ super(props)
}
+ state = { admin: false };
componentDidMount(){
__embarkContext.execWhenReady(() => {
@@ -32,25 +33,24 @@ class App extends React.Component {
;
}
- render(){
+ render() {
+ const { admin } = this.state;
return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
);
+
+
+ {!admin &&
+
+
+
+ { this.setState({ admin: !admin })}} />
+
+ Admin Mode
+
+ }
+
+ );
}
}