From 00c54b7d663a60c03afd434db89f18a228a15190 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Fri, 5 Aug 2016 10:13:55 +0800 Subject: [PATCH] fix another react bug --- frontend/src/components/Header.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Header.js b/frontend/src/components/Header.js index 22f30a44..58bfb29e 100644 --- a/frontend/src/components/Header.js +++ b/frontend/src/components/Header.js @@ -2,8 +2,8 @@ import React, { Component, PropTypes } from 'react' import { objectWithoutProperties } from '../utils' const MapLink = props => { - const { show, linkText, href, linkClass } = props - const otherProps = objectWithoutProperties(props, ['show', 'linkText', 'href', 'linkClass']) + const { show, text, href, linkClass } = props + const otherProps = objectWithoutProperties(props, ['show', 'text', 'href', 'linkClass']) if (!show) { return null } @@ -11,7 +11,7 @@ const MapLink = props => { return (
- {linkText} + {text}
) }