From aafc15402dd93587a18ab7b73c03275d4cdb9442 Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Tue, 19 Jun 2018 06:46:34 +1000 Subject: [PATCH] Add lang to HamburgerMenuLink --- public/nav/menu/HamburgerMenu.jsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/public/nav/menu/HamburgerMenu.jsx b/public/nav/menu/HamburgerMenu.jsx index 4292d4a..9559a1c 100644 --- a/public/nav/menu/HamburgerMenu.jsx +++ b/public/nav/menu/HamburgerMenu.jsx @@ -24,13 +24,15 @@ import React from 'react'; import { connect } from 'react-redux'; import { NavLink } from 'react-router-dom'; +import Language from './../../language/Language'; import * as MenuActions from './../../actions/MenuActions'; const HamburerMenuItem = function(props) { + console.log(props); return (
  • - Home + { Language.get(props.lang) }
  • ); @@ -61,9 +63,9 @@ class HamburgerMenu extends React.Component {
    @@ -74,7 +76,8 @@ class HamburgerMenu extends React.Component { const mapStateToProps = function(state) { return { - open: state.menu.open + open: state.menu.open, + language: state.language.code } }