mirror of https://github.com/embarklabs/embark.git
add back communicationContainer in layout
This commit is contained in:
parent
54dc1f04ad
commit
9208778089
|
@ -10,9 +10,12 @@ import AccountsContainer from '../containers/AccountsContainer';
|
||||||
import AccountContainer from '../containers/AccountContainer';
|
import AccountContainer from '../containers/AccountContainer';
|
||||||
import BlocksContainer from '../containers/BlocksContainer';
|
import BlocksContainer from '../containers/BlocksContainer';
|
||||||
import BlockContainer from '../containers/BlockContainer';
|
import BlockContainer from '../containers/BlockContainer';
|
||||||
|
import CommunicationContainer from '../containers/CommunicationContainer';
|
||||||
import TransactionsContainer from '../containers/TransactionsContainer';
|
import TransactionsContainer from '../containers/TransactionsContainer';
|
||||||
import TransactionContainer from '../containers/TransactionContainer';
|
import TransactionContainer from '../containers/TransactionContainer';
|
||||||
|
|
||||||
|
const className = "d-flex align-items-center";
|
||||||
|
|
||||||
const ExplorerLayout = () => (
|
const ExplorerLayout = () => (
|
||||||
<Grid.Row>
|
<Grid.Row>
|
||||||
<Grid.Col md={3}>
|
<Grid.Col md={3}>
|
||||||
|
@ -20,7 +23,7 @@ const ExplorerLayout = () => (
|
||||||
<div>
|
<div>
|
||||||
<List.Group transparent={true}>
|
<List.Group transparent={true}>
|
||||||
<List.GroupItem
|
<List.GroupItem
|
||||||
className="d-flex align-items-center"
|
className={className}
|
||||||
to="/embark/explorer/accounts"
|
to="/embark/explorer/accounts"
|
||||||
icon="users"
|
icon="users"
|
||||||
RootComponent={withRouter(NavLink)}
|
RootComponent={withRouter(NavLink)}
|
||||||
|
@ -28,7 +31,7 @@ const ExplorerLayout = () => (
|
||||||
Accounts
|
Accounts
|
||||||
</List.GroupItem>
|
</List.GroupItem>
|
||||||
<List.GroupItem
|
<List.GroupItem
|
||||||
className="d-flex align-items-center"
|
className={className}
|
||||||
to="/embark/explorer/blocks"
|
to="/embark/explorer/blocks"
|
||||||
icon="book-open"
|
icon="book-open"
|
||||||
RootComponent={withRouter(NavLink)}
|
RootComponent={withRouter(NavLink)}
|
||||||
|
@ -36,13 +39,21 @@ const ExplorerLayout = () => (
|
||||||
Blocks
|
Blocks
|
||||||
</List.GroupItem>
|
</List.GroupItem>
|
||||||
<List.GroupItem
|
<List.GroupItem
|
||||||
className="d-flex align-items-center"
|
className={className}
|
||||||
to="/embark/explorer/transactions"
|
to="/embark/explorer/transactions"
|
||||||
icon="activity"
|
icon="activity"
|
||||||
RootComponent={withRouter(NavLink)}
|
RootComponent={withRouter(NavLink)}
|
||||||
>
|
>
|
||||||
Transactions
|
Transactions
|
||||||
</List.GroupItem>
|
</List.GroupItem>
|
||||||
|
<List.GroupItem
|
||||||
|
className={className}
|
||||||
|
to="/embark/explorer/communication"
|
||||||
|
icon="phone-call"
|
||||||
|
RootComponent={withRouter(NavLink)}
|
||||||
|
>
|
||||||
|
Communication
|
||||||
|
</List.GroupItem>
|
||||||
</List.Group>
|
</List.Group>
|
||||||
</div>
|
</div>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
|
@ -52,6 +63,7 @@ const ExplorerLayout = () => (
|
||||||
<Route exact path="/embark/explorer/accounts/:address" component={AccountContainer} />
|
<Route exact path="/embark/explorer/accounts/:address" component={AccountContainer} />
|
||||||
<Route exact path="/embark/explorer/blocks" component={BlocksContainer} />
|
<Route exact path="/embark/explorer/blocks" component={BlocksContainer} />
|
||||||
<Route exact path="/embark/explorer/blocks/:blockNumber" component={BlockContainer} />
|
<Route exact path="/embark/explorer/blocks/:blockNumber" component={BlockContainer} />
|
||||||
|
<Route exact path="/embark/explorer/communication" component={CommunicationContainer} />
|
||||||
<Route exact path="/embark/explorer/transactions" component={TransactionsContainer} />
|
<Route exact path="/embark/explorer/transactions" component={TransactionsContainer} />
|
||||||
<Route exact path="/embark/explorer/transactions/:hash" component={TransactionContainer} />
|
<Route exact path="/embark/explorer/transactions/:hash" component={TransactionContainer} />
|
||||||
</Switch>
|
</Switch>
|
||||||
|
|
Loading…
Reference in New Issue