diff --git a/common/app/Nav/Nav.jsx b/common/app/Nav/Nav.jsx index 1e41d1b155..9fd70567ca 100644 --- a/common/app/Nav/Nav.jsx +++ b/common/app/Nav/Nav.jsx @@ -62,6 +62,12 @@ function mergeProps(stateProps, dispatchProps, ownProps) { }; } +const allNavs = [ + LargeNav, + MediumNav, + SmallNav +]; + function FCCNav(props) { const { panes, @@ -69,30 +75,24 @@ function FCCNav(props) { clickOnMap, shouldShowMapButton } = props; + const withNavProps = Component => ( + + ); return ( - - - + { + allNavs.map(withNavProps) + } ); }