From eb3bf4a6ba28f6643ad160f8b44b12864f5454f9 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 3 Aug 2018 08:58:49 -0400 Subject: [PATCH] include contract layout --- embark-ui/src/components/ContractLayout.js | 63 ++++++++++++++++++++++ embark-ui/src/reducers/index.js | 2 + embark-ui/src/routes.js | 4 +- 3 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 embark-ui/src/components/ContractLayout.js diff --git a/embark-ui/src/components/ContractLayout.js b/embark-ui/src/components/ContractLayout.js new file mode 100644 index 000000000..2cad1ded3 --- /dev/null +++ b/embark-ui/src/components/ContractLayout.js @@ -0,0 +1,63 @@ +import React from 'react'; +import {NavLink, Route, Switch, withRouter} from 'react-router-dom'; +import { + Page, + Grid, + List +} from "tabler-react"; + +import ContractContainer from '../containers/ContractContainer'; + +const ContractLayout = () => ( + + + Contract +
+ + + Deployment / Utils + + + Functions + + + Source Code + + + Profile + + +
+
+ + + + + +
+); + // + // + // + +export default withRouter(ContractLayout); diff --git a/embark-ui/src/reducers/index.js b/embark-ui/src/reducers/index.js index 5ea2d06e1..0c6174e93 100644 --- a/embark-ui/src/reducers/index.js +++ b/embark-ui/src/reducers/index.js @@ -10,6 +10,8 @@ import contractReducer from './contractReducer'; const rootReducer = combineReducers({ accounts: accountsReducer, processes: processesReducer, + contracts: contractsReducer, + contract: contractReducer, blocks: blocksReducer, transactions: transactionsReducer, commands: commandsReducer, diff --git a/embark-ui/src/routes.js b/embark-ui/src/routes.js index f5127e098..911a62d8f 100644 --- a/embark-ui/src/routes.js +++ b/embark-ui/src/routes.js @@ -8,6 +8,7 @@ import ContractContainer from './containers/ContractContainer'; import NoMatch from './components/NoMatch'; import ExplorerLayout from './components/ExplorerLayout'; import ProcessesLayout from './components/ProcessesLayout'; +import ContractLayout from './components/ContractLayout'; const routes = ( @@ -16,7 +17,8 @@ const routes = ( - + +