diff --git a/agents/components/LogOut.js b/agents/components/LogOut.js index 23ca56d..c235fe7 100644 --- a/agents/components/LogOut.js +++ b/agents/components/LogOut.js @@ -7,18 +7,23 @@ import { FormattedMessage } from '../../lib/Intl' import styles from '../styles/LogOut' function LogOut (props) { - const { styles, actions } = props + const { + styles, + actions, + as: Component = FlatButton, + ...moreProps + } = props return ( - - + ) } diff --git a/agents/containers/LogOut.js b/agents/containers/LogOut.js index ebd6fb2..232dad4 100644 --- a/agents/containers/LogOut.js +++ b/agents/containers/LogOut.js @@ -10,7 +10,7 @@ import LogOut from '../components/LogOut' export default flow( connectFeathers({ - selector: (state) => ({}), + selector: (state, ownProps) => ownProps, actions: { authentication: { logOut } }, query: [] }) diff --git a/app/components/Dashboard.js b/app/components/Dashboard.js index b6d22d6..ccb7d01 100644 --- a/app/components/Dashboard.js +++ b/app/components/Dashboard.js @@ -7,7 +7,7 @@ import styles from '../styles/Dashboard' import { FormattedMessage } from '../../lib/Intl' function Dashboard (props) { - const { styles, startOrder } = props + const { styles, actions } = props return (
@@ -18,7 +18,11 @@ function Dashboard (props) { />

- + { + const { + path, + name = path, + navigation + } = route + + const { + Component, + title = name, + icon + } = navigation + + if (Component) { + return ( +