From 57ec32958551eba0980dce4debc28eb384a2c8aa Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Mon, 19 Dec 2016 21:33:06 +0100 Subject: [PATCH] 404 should render create link for toggles --- frontend/src/component/feature/view-component.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/component/feature/view-component.jsx b/frontend/src/component/feature/view-component.jsx index 17d1163a6f..75e078da89 100644 --- a/frontend/src/component/feature/view-component.jsx +++ b/frontend/src/component/feature/view-component.jsx @@ -1,6 +1,6 @@ import React, { PropTypes } from 'react'; import { Tabs, Tab, ProgressBar } from 'react-mdl'; -import { hashHistory } from 'react-router'; +import { hashHistory, Link } from 'react-router'; import HistoryComponent from '../history/history-list-toggle-container'; import MetricComponent from './metric-container'; @@ -65,7 +65,9 @@ export default class ViewFeatureToggleComponent extends React.Component { if (features.length === 0 ) { return ; } - return Could not find the toggle "{featureToggleName}"; + return ( + Could not find the toggle {featureToggleName} + ); } const activeTabId = TABS[this.props.activeTab] ? TABS[this.props.activeTab] : TABS.view;