diff --git a/src/client.js b/src/client.js index e913d3a1f..8d8fc1933 100644 --- a/src/client.js +++ b/src/client.js @@ -50,7 +50,7 @@ if (typeof window !== 'undefined') { }); } -match({ history, routes: routes() }, (error, redirectLocation, renderProps) => { +match({ history, routes: routes(store) }, (error, redirectLocation, renderProps) => { const component = ( -
  • - - Mobile - -
  • -
  • - - Developers - -
  • -
  • - Legacy Quran.com -
  • -
  • - - Contact us - -
  • - - ); - } - return ( ); } @@ -82,4 +68,8 @@ class IndexHeaderNav extends Component { } } -export default IndexHeaderNav; +export default connect( + state => ({ + user: state.auth.user + }) +)(IndexHeaderNav); diff --git a/src/components/IndexHeader/index.js b/src/components/IndexHeader/index.js index 37f7fbfa2..e2baaecdb 100644 --- a/src/components/IndexHeader/index.js +++ b/src/components/IndexHeader/index.js @@ -2,7 +2,7 @@ import React, { Component, PropTypes } from 'react'; import Link from 'react-router/lib/Link'; import SearchInput from '../SearchInput'; -import IndexHeaderNav from './Nav'; +import Nav from './Nav'; import debug from '../../helpers/debug'; @@ -10,8 +10,7 @@ const logo = require('../../../static/images/logo-lg-w.png'); export default class IndexHeader extends Component { static propTypes = { - noSearch: PropTypes.bool, - navlink: PropTypes.any + noSearch: PropTypes.bool }; renderSearch() { @@ -29,7 +28,7 @@ export default class IndexHeader extends Component { return (
    - +