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 = ( - + +